class Phony::SplittingError
Raised in case Phony
can’t split a given number.
@example
Phony.split("Fnork!") # Raises a Phony::SplittingError.
Public Class Methods
Source
# 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
Calls superclass method