Class: Module

Inherits:
Object show all
Defined in:
lib/kaki/utils/add_methods.rb

Instance Method Summary collapse

Instance Method Details

#register_all_methodsObject

モジュール内のすべてのメソッドをクラスメソッドにする


13
14
15
16
17
# File 'lib/kaki/utils/add_methods.rb', line 13

def register_all_methods
  instance_methods.each do |m|
    module_function m
  end
end