Advertisement
Guest User

Untitled

a guest
May 20th, 2014
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module foo
  2.   module bar
  3.     module_level_variable = nil
  4.     def self.do_stuff(baz)
  5.       module_level_variable = baz
  6.     end
  7.     class Monkey
  8.       def jump
  9.         return module_level_variable.method
  10.       end
  11.     end
  12.   end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement