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



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

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