Guest User

Untitled

a guest
Dec 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. module A1
  2. REACHABLE = true
  3. module B1
  4. NESTING = Module.nesting
  5. def self.reachable?
  6. REACHABLE
  7. end
  8. end
  9. end
  10.  
  11. module A2
  12. REACHABLE = false
  13. end
  14. module A2::B2
  15. NESTING = Module.nesting
  16. def self.reachable?
  17. REACHABLE
  18. end
  19. end
  20.  
  21.  
  22. A1::B1::NESTING
  23. A2::B2::NESTING
  24.  
  25. A1::B1.reachable?
  26. A2::B2.reachable?
Add Comment
Please, Sign In to add comment