[MacRuby-devel] [MacRuby] #654: CALayer has a problem aliasing methods
MacRuby
ruby-noreply at macosforge.org
Sun Apr 18 04:29:46 PDT 2010
#654: CALayer has a problem aliasing methods
-------------------------------------+--------------------------------------
Reporter: eloy.de.enige@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------------+--------------------------------------
This only seems to happen on CALayer subclasses:
{{{
% cat t.rb
framework 'QuartzCore'
class X < CALayer
attr_accessor :foo
alias_method :foo?, :foo
end
x = X.new
p x.foo?
x.foo = true
p x.foo?
% macruby t.rb
/Users/eloy/Documents/DEVELOPMENT/MacRuby/macruby/t.rb:4:in `block':
undefined method `foo' for class `X' (NameError)
from /Users/eloy/Documents/DEVELOPMENT/MacRuby/macruby/t.rb:1:in
`<main>'
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/654>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list