Class: Humanized::FailedInterpolation
Constant Summary collapse
- ERROR_STRING =
'[error]'.freeze
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(exception, string, variables) ⇒ FailedInterpolation
constructor
A new instance of FailedInterpolation.
Methods inherited from String
Constructor Details
#initialize(exception, string, variables) ⇒ FailedInterpolation
Returns a new instance of FailedInterpolation.
33 34 35 36 37 38 |
# File 'lib/humanized.rb', line 33 def initialize(exception, string, variables) @exception = exception @string = string @variables = variables super(ERROR_STRING) end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
31 32 33 |
# File 'lib/humanized.rb', line 31 def exception @exception end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
31 32 33 |
# File 'lib/humanized.rb', line 31 def string @string end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
31 32 33 |
# File 'lib/humanized.rb', line 31 def variables @variables end |