Exception: I18n::InvalidLocale

Inherits:
ArgumentError show all
Defined in:
lib/i18n/exceptions.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (InvalidLocale) initialize(locale)

Returns a new instance of InvalidLocale



27
28
29
30
# File 'lib/i18n/exceptions.rb', line 27

def initialize(locale)
  @locale = locale
  super "#{locale.inspect} is not a valid locale"
end

Instance Attribute Details

- (Object) locale (readonly)

Returns the value of attribute locale



26
27
28
# File 'lib/i18n/exceptions.rb', line 26

def locale
  @locale
end