Exception: Dozuki::InvalidFormat
- Inherits:
-
StandardError
- Object
- StandardError
- Dozuki::InvalidFormat
- Defined in:
- lib/dozuki/exceptions.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#node ⇒ Object
Returns the value of attribute node.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ InvalidFormat
constructor
A new instance of InvalidFormat.
Constructor Details
#initialize(opts = {}) ⇒ InvalidFormat
Returns a new instance of InvalidFormat.
16 17 18 19 20 21 |
# File 'lib/dozuki/exceptions.rb', line 16 def initialize(opts={}) super "Cannot parse '#{opts[:value]}' to #{opts[:format]}" self.format = opts[:format] self.node = opts[:node] self.value = opts[:value] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
14 15 16 |
# File 'lib/dozuki/exceptions.rb', line 14 def format @format end |
#node ⇒ Object
Returns the value of attribute node.
14 15 16 |
# File 'lib/dozuki/exceptions.rb', line 14 def node @node end |
#value ⇒ Object
Returns the value of attribute value.
14 15 16 |
# File 'lib/dozuki/exceptions.rb', line 14 def value @value end |