Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Demo
- extend self
- def f
- puts __callee__
- end
- alias g f
- alias_method :h,:f
- end
- Demo.f
- Demo.g
- Demo.h
- puts RUBY_PLATFORM
- puts RUBY_VERSION
- # >> f
- # >> g
- # >> h
- # >> x86_64-darwin16
- # >> 2.3.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement