Exception: PositionRange::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PositionRange::Error
- Defined in:
- lib/position_range/error.rb
Instance Attribute Summary collapse
-
#from_range ⇒ Object
Returns the value of attribute from_range.
-
#to_range ⇒ Object
Returns the value of attribute to_range.
Instance Method Summary collapse
-
#initialize(from_range, to_range) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(from_range, to_range) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/position_range/error.rb', line 4 def initialize(from_range, to_range) @from_range = from_range @to_range = to_range end |
Instance Attribute Details
#from_range ⇒ Object
Returns the value of attribute from_range.
2 3 4 |
# File 'lib/position_range/error.rb', line 2 def from_range @from_range end |
#to_range ⇒ Object
Returns the value of attribute to_range.
2 3 4 |
# File 'lib/position_range/error.rb', line 2 def to_range @to_range end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/position_range/error.rb', line 9 def super.to_s + ': ' + @from_range.to_s + ',' + @to_range.to_s end |