[MacRuby] #1245: alias_method not working in included module
MacRuby
ruby-noreply at macosforge.org
Thu Apr 28 22:28:26 PDT 2011
#1245: alias_method not working in included module
--------------------------------+-------------------------------------------
Reporter: petr.kaleta@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
--------------------------------+-------------------------------------------
Changes (by lsansonetti@…):
* milestone: MacRuby 0.11 =>
Comment:
It works is a pure-Ruby method is being aliased.
{{{
$ cat t4.rb
module InstanceMethods
def foo;42;end
alias_method :model, :foo
end
class Model
include InstanceMethods
end
puts Model.new.model
$ ./miniruby t4.rb
42
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1245#comment:1>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list