Class: SelfData::ConversionError
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#real_error ⇒ Object
readonly
Returns the value of attribute real_error.
Instance Method Summary collapse
-
#initialize(format = nil, real_error = nil) ⇒ ConversionError
constructor
A new instance of ConversionError.
Constructor Details
#initialize(format = nil, real_error = nil) ⇒ ConversionError
Returns a new instance of ConversionError.
27 28 29 30 31 |
# File 'lib/self_data/errors.rb', line 27 def initialize(format = nil, real_error = nil) @format = format @real_error = real_error super("#{format}: #{real_error.inspect}") end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
25 26 27 |
# File 'lib/self_data/errors.rb', line 25 def format @format end |
#real_error ⇒ Object (readonly)
Returns the value of attribute real_error.
25 26 27 |
# File 'lib/self_data/errors.rb', line 25 def real_error @real_error end |