Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class Foo < FooParent
  2. def bar
  3. # does stuff
  4. auth_profile = authentication.profile # <--- is this bad style?
  5. puts auth_profile
  6. end
  7. end
  8.  
  9. class FooParent
  10. attr_reader :authentication
  11.  
  12. def initialize(authentication)
  13. @authentication = authentication
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement