Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # app/something/parent.rb
- class Parent
- def path
- __FILE__
- end
- end
- # app/something/child.rb
- class Child < Parent; end
- # I want Child.path to return app/something/child.rb
- Child.path #=> app/something/parent.rb
Add Comment
Please, Sign In to add comment