Class: TreeHaver::ProcessSpan

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_byteObject

Returns the value of attribute end_byte

Returns:

  • (Object)

    the current value of end_byte



79
80
81
# File 'lib/tree_haver/contracts.rb', line 79

def end_byte
  @end_byte
end

#end_colObject

Returns the value of attribute end_col

Returns:

  • (Object)

    the current value of end_col



79
80
81
# File 'lib/tree_haver/contracts.rb', line 79

def end_col
  @end_col
end

#end_rowObject

Returns the value of attribute end_row

Returns:

  • (Object)

    the current value of end_row



79
80
81
# File 'lib/tree_haver/contracts.rb', line 79

def end_row
  @end_row
end

#start_byteObject

Returns the value of attribute start_byte

Returns:

  • (Object)

    the current value of start_byte



79
80
81
# File 'lib/tree_haver/contracts.rb', line 79

def start_byte
  @start_byte
end

#start_colObject

Returns the value of attribute start_col

Returns:

  • (Object)

    the current value of start_col



79
80
81
# File 'lib/tree_haver/contracts.rb', line 79

def start_col
  @start_col
end

#start_rowObject

Returns the value of attribute start_row

Returns:

  • (Object)

    the current value of start_row



79
80
81
# File 'lib/tree_haver/contracts.rb', line 79

def start_row
  @start_row
end

Instance Method Details

#to_hObject



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