Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/foo.rb Secret

Created May 9, 2019 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havenwood/9ae14630c79031ed6f4c44d14c9a2578 to your computer and use it in GitHub Desktop.
Save havenwood/9ae14630c79031ed6f4c44d14c9a2578 to your computer and use it in GitHub Desktop.
module Foo
module_function def Bar
Bar
end
module Bar
module_function def blah
:blah
end
end
end
Foo.Bar.blah
#=> :blah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment