Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # In bar.rb
- def self.hello_world
- puts "Hello world !"
- end
- # My class Foo
- class Foo
- require 'bar.rb'
- end
- Foo.hello_world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement