Class: TreeHaver::SourceSpan
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::SourceSpan
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#end_point ⇒ Object
Returns the value of attribute end_point.
-
#range ⇒ Object
Returns the value of attribute range.
-
#start_point ⇒ Object
Returns the value of attribute start_point.
Instance Method Summary collapse
Instance Attribute Details
#end_point ⇒ Object
Returns the value of attribute end_point
517 518 519 |
# File 'lib/tree_haver/contracts.rb', line 517 def end_point @end_point end |
#range ⇒ Object
Returns the value of attribute range
517 518 519 |
# File 'lib/tree_haver/contracts.rb', line 517 def range @range end |
#start_point ⇒ Object
Returns the value of attribute start_point
517 518 519 |
# File 'lib/tree_haver/contracts.rb', line 517 def start_point @start_point end |
Instance Method Details
#to_h ⇒ Object
518 519 520 521 522 523 524 |
# File 'lib/tree_haver/contracts.rb', line 518 def to_h { range: range.to_h, start_point: start_point.to_h, end_point: end_point.to_h } end |