Exception: Addressing::UnknownLocaleError
- Defined in:
- lib/addressing/exceptions.rb
Overview
Raised when an unknown locale is provided
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(locale) ⇒ UnknownLocaleError
constructor
A new instance of UnknownLocaleError.
Constructor Details
#initialize(locale) ⇒ UnknownLocaleError
Returns a new instance of UnknownLocaleError.
19 20 21 22 |
# File 'lib/addressing/exceptions.rb', line 19 def initialize(locale) super("Unknown locale: #{locale}") @locale = locale end |
Instance Attribute Details
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
24 25 26 |
# File 'lib/addressing/exceptions.rb', line 24 def locale @locale end |