class Phony::FormattingError
Raised in case Phony
can’t format a given number.
@example
Phony.format("Fnork!") # Raises a Phony::FormattingError.
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/phony.rb, line 106 def initialize super(%(Phony could not format the given number. Is it a phone number?)) end