Class: Humanized::FailedInterpolation

Inherits:
String show all
Defined in:
lib/humanized.rb

Constant Summary collapse

ERROR_STRING =
'[error]'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionObject (readonly)

Returns the value of attribute exception.



31
32
33
# File 'lib/humanized.rb', line 31

def exception
  @exception
end

#stringObject (readonly)

Returns the value of attribute string.



31
32
33
# File 'lib/humanized.rb', line 31

def string
  @string
end

#variablesObject (readonly)

Returns the value of attribute variables.



31
32
33
# File 'lib/humanized.rb', line 31

def variables
  @variables
end