Exception: TextWeaver::Error
- Inherits:
-
StandardError
- Object
- StandardError
- TextWeaver::Error
- Defined in:
- lib/text_weaver/error.rb
Overview
This Error is raised if insert-positions err.
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#set ⇒ Object
Returns the value of attribute set.
Instance Method Summary collapse
-
#initialize(position, set) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(position, set) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/text_weaver/error.rb', line 6 def initialize(position, set) @position = position @set = set end |
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
4 5 6 |
# File 'lib/text_weaver/error.rb', line 4 def position @position end |
#set ⇒ Object
Returns the value of attribute set.
4 5 6 |
# File 'lib/text_weaver/error.rb', line 4 def set @set end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/text_weaver/error.rb', line 11 def super.to_s + ': ' + @position.to_s + ', set: ' + @set.to_s end |