Closed larrylv closed 5 years ago
Ruby allows using module_function to create module functions https://apidock.com/ruby/Module/module_function:
module_function
module Test module_function def foo puts 'bar' end end Test.foo #=> "bar"
This looks great; thank you!
Ruby allows using
module_function
to create module functions https://apidock.com/ruby/Module/module_function: