Class: Haecksler::TypeError
- Inherits:
-
Object
- Object
- Haecksler::TypeError
- Defined in:
- lib/haecksler/column.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, column) ⇒ TypeError
constructor
A new instance of TypeError.
- #to_s ⇒ Object
Constructor Details
#initialize(value, column) ⇒ TypeError
Returns a new instance of TypeError.
9 10 11 12 |
# File 'lib/haecksler/column.rb', line 9 def initialize(value, column) @value = value @type = column.type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/haecksler/column.rb', line 7 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/haecksler/column.rb', line 7 def value @value end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/haecksler/column.rb', line 14 def to_s "Could not parse '#{value}' to '#{type}" end |