Class: Keisan::StringAndGroupParser::Portion

Inherits:
Object
  • Object
show all
Defined in:
lib/keisan/string_and_group_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start_index) ⇒ Portion

Returns a new instance of Portion.



6
7
8
# File 'lib/keisan/string_and_group_parser.rb', line 6

def initialize(start_index)
  @start_index = start_index
end

Instance Attribute Details

#end_indexObject (readonly)

Returns the value of attribute end_index.



4
5
6
# File 'lib/keisan/string_and_group_parser.rb', line 4

def end_index
  @end_index
end

#start_indexObject (readonly)

Returns the value of attribute start_index.



4
5
6
# File 'lib/keisan/string_and_group_parser.rb', line 4

def start_index
  @start_index
end