Class: Keisan::StringAndGroupParser::Portion
- Inherits:
-
Object
- Object
- Keisan::StringAndGroupParser::Portion
- Defined in:
- lib/keisan/string_and_group_parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#end_index ⇒ Object
readonly
Returns the value of attribute end_index.
-
#start_index ⇒ Object
readonly
Returns the value of attribute start_index.
Instance Method Summary collapse
-
#initialize(start_index) ⇒ Portion
constructor
A new instance of Portion.
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_index ⇒ Object (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_index ⇒ Object (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 |