Created
April 28, 2011 16:36
-
-
Save PetrKaleta/946712 to your computer and use it in GitHub Desktop.
Macruby alias_method in module bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base | |
module InstanceMethods | |
alias_method :model, :class | |
end | |
end | |
class Model | |
include Base::InstanceMethods | |
end | |
class Item < Model | |
end | |
puts Item.new.model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment