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



76
77
78
79
80
# File 'lib/adhearsion/voip/dsl/numerical_string.rb', line 76

def alias_method_once(new_name, old_name)
  unless instance_methods.include?(new_name.to_s)
    alias_method(new_name, old_name)
  end
end