class Phony::SplittingError

Raised in case Phony can’t split a given number.

@example

Phony.split("Fnork!") # Raises a Phony::SplittingError.

Public Class Methods

new(number) click to toggle source
Calls superclass method
# File lib/phony.rb, line 95
def initialize(number)
  super(%(Phony could not split the given number. Is #{(number.nil? || number == '') ? 'it' : number.inspect} a phone number?))
end