Class: Parsby::Context
- Inherits:
-
Object
- Object
- Parsby::Context
- Defined in:
- lib/parsby.rb
Instance Attribute Summary collapse
-
#bio ⇒ Object
readonly
Returns the value of attribute bio.
-
#parsed_ranges ⇒ Object
Returns the value of attribute parsed_ranges.
Instance Method Summary collapse
- #furthest_parsed_range ⇒ Object
-
#initialize(io) ⇒ Context
constructor
A new instance of Context.
Constructor Details
Instance Attribute Details
#bio ⇒ Object (readonly)
Returns the value of attribute bio.
583 584 585 |
# File 'lib/parsby.rb', line 583 def bio @bio end |
#parsed_ranges ⇒ Object
Returns the value of attribute parsed_ranges.
584 585 586 |
# File 'lib/parsby.rb', line 584 def parsed_ranges @parsed_ranges end |
Instance Method Details
#furthest_parsed_range ⇒ Object
591 592 593 |
# File 'lib/parsby.rb', line 591 def furthest_parsed_range parsed_ranges.flatten.max_by(&:start) end |