Module: MPatch::Extend::Module
- Defined in:
- lib/mpatch/module.rb
Instance Method Summary collapse
- #convert_instance_methods_to_singleton_methods ⇒ Object (also: #ci2s, #instances2singletons)
Instance Method Details
#convert_instance_methods_to_singleton_methods ⇒ Object Also known as: ci2s, instances2singletons
99 100 101 102 103 104 105 106 |
# File 'lib/mpatch/module.rb', line 99 def convert_instance_methods_to_singleton_methods self.instance_methods.each do |symbol| module_function symbol public symbol end end |