Module: ReflectionUtils::CreateModuleFunctions
- Defined in:
- lib/reflection_utils/create_module_functions.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/reflection_utils/create_module_functions.rb', line 3 def self.included(base) base.instance_methods.each do |method| base.module_eval do module_function(method) public(method) end end end |