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
130 131 132 |
# File 'lib/tree_haver/contracts.rb', line 130 def end_point @end_point end |
#range ⇒ Object
Returns the value of attribute range
130 131 132 |
# File 'lib/tree_haver/contracts.rb', line 130 def range @range end |
#start_point ⇒ Object
Returns the value of attribute start_point
130 131 132 |
# File 'lib/tree_haver/contracts.rb', line 130 def start_point @start_point end |
Instance Method Details
#to_h ⇒ Object
131 132 133 134 135 136 137 |
# File 'lib/tree_haver/contracts.rb', line 131 def to_h { range: range.to_h, start_point: start_point.to_h, end_point: end_point.to_h } end |