-
-
Save coaxial/31b62e852855c6baa2bca2acfc6e0e05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tools/bar.rb | |
module MyApp | |
module Tools | |
module Bar | |
def bar_method(item) | |
# ... | |
Foo.foo_method # => Undefined method `foo_method` for MyApp::Tools::Foo.Module | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tools/foo.rb | |
module MyApp | |
module Tools | |
module Foo | |
def foo_method | |
# ... | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tools/helpers.rb | |
module MyApp | |
module Tools | |
module Helpers | |
def my_helper(args) | |
args.reject { |item| Bar.bar_method item } | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tools/tools.rb | |
require './lib/tools/foo.rb' | |
require './lib/tools/bar.rb' | |
require './lib/tools/helpers.rb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment