Class: TreeHaver::ProcessSpan
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ProcessSpan
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#end_byte ⇒ Object
Returns the value of attribute end_byte.
-
#end_col ⇒ Object
Returns the value of attribute end_col.
-
#end_row ⇒ Object
Returns the value of attribute end_row.
-
#start_byte ⇒ Object
Returns the value of attribute start_byte.
-
#start_col ⇒ Object
Returns the value of attribute start_col.
-
#start_row ⇒ Object
Returns the value of attribute start_row.
Instance Method Summary collapse
Instance Attribute Details
#end_byte ⇒ Object
Returns the value of attribute end_byte
79 80 81 |
# File 'lib/tree_haver/contracts.rb', line 79 def end_byte @end_byte end |
#end_col ⇒ Object
Returns the value of attribute end_col
79 80 81 |
# File 'lib/tree_haver/contracts.rb', line 79 def end_col @end_col end |
#end_row ⇒ Object
Returns the value of attribute end_row
79 80 81 |
# File 'lib/tree_haver/contracts.rb', line 79 def end_row @end_row end |
#start_byte ⇒ Object
Returns the value of attribute start_byte
79 80 81 |
# File 'lib/tree_haver/contracts.rb', line 79 def start_byte @start_byte end |
#start_col ⇒ Object
Returns the value of attribute start_col
79 80 81 |
# File 'lib/tree_haver/contracts.rb', line 79 def start_col @start_col end |
#start_row ⇒ Object
Returns the value of attribute start_row
79 80 81 |
# File 'lib/tree_haver/contracts.rb', line 79 def start_row @start_row end |
Instance Method Details
#to_h ⇒ Object
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/tree_haver/contracts.rb', line 80 def to_h { start_byte: start_byte, end_byte: end_byte, start_row: start_row, start_col: start_col, end_row: end_row, end_col: end_col } end |