Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Hello
- def say
- puts "hello"
- end
- end
- Hello.new.say
- # hello
- module HelloPatch
- def say
- puts "patching"
- super
- end
- end
- class Hello
- prepend HelloPatch
- end
- Hello.new.say
- # patching
- # hello
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement