Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Testt.instance_eval do
- def foo
- "I'll be available as class method"
- end
- def self.bar
- "I'll be available as class method"
- end
- end
- Testt.foo
- =>"I'll be available as class method"
- Testt.bar
- =>"I'll be available as class method"
Add Comment
Please, Sign In to add comment