Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/everyday_thor_util/plugin-helper.rb

Instance Method Summary collapse

Instance Method Details

#create_method(name, &block) ⇒ Object



7
8
9
# File 'lib/everyday_thor_util/plugin-helper.rb', line 7

def create_method(name, &block)
  self.send(:define_method, name, &block)
end

#dup_method(new_name, old_name) ⇒ Object



11
12
13
# File 'lib/everyday_thor_util/plugin-helper.rb', line 11

def dup_method(new_name, old_name)
  self.send(:alias_method, new_name, old_name)
end