Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- def hello
- puts "hello 1"
- end
- end
- module Some
- class Foo
- def hello
- puts "hello 2"
- end
- end
- end
- include Some
- class Testing < Foo
- end
- m = Testing.new
- m.hello #=> "hello 1"
- # why the original Foo class is not monkey patched by the included one?
Add Comment
Please, Sign In to add comment