Exception: I18n::MissingInterpolationArgument
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::MissingInterpolationArgument
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(key, string) ⇒ MissingInterpolationArgument
constructor
A new instance of MissingInterpolationArgument.
Constructor Details
#initialize(key, string) ⇒ MissingInterpolationArgument
Returns a new instance of MissingInterpolationArgument.
32 33 34 35 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 32 def initialize(key, string) @key, @string = key, string super "interpolation argument #{key} missing in #{string.inspect}" end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
31 32 33 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 31 def key @key end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
31 32 33 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 31 def string @string end |