Class: Class

Inherits:
Object show all
Defined in:
lib/adhearsion/voip/dsl/numerical_string.rb

Overview

These monkey patches are necessary for the NumericalString to work, unfortunately.

Instance Method Summary collapse

Instance Method Details

#alias_method_once(new_name, old_name) ⇒ Object



89
90
91
92
93
# File 'lib/adhearsion/voip/dsl/numerical_string.rb', line 89

def alias_method_once(new_name, old_name)
  unless instance_methods.map{|m| m.to_sym}.include?(new_name.to_sym)
    alias_method(new_name, old_name)
  end
end