Class: Module

Inherits:
Object show all
Defined in:
lib/Switches.rb

Instance Method Summary collapse

Instance Method Details

#alias_methods(*args) ⇒ Object



95
96
97
# File 'lib/Switches.rb', line 95

def alias_methods(*args)
  args.all_but_last.each{|e| alias_method e.to_sym, args.last.to_sym}
end