Method: Phonelib::PhoneFormatter#method_missing
- Defined in:
- lib/phonelib/phone_formatter.rb
#method_missing(method, *args) ⇒ Object
110 111 112 113 114 115 116 117 |
# File 'lib/phonelib/phone_formatter.rb', line 110 def method_missing(method, *args) prefix_methods = %w(international_ full_international_ e164_ full_e164_) method_s = method.to_s prefix_methods.each do |key| return send(key[0..-2], method_s.gsub(key, '')) if method_s.start_with?(key) end super end |