Class: RSCM::Parser
- Inherits:
-
Object
- Object
- RSCM::Parser
- Defined in:
- lib/rscm/parser.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(break_regexp) ⇒ Parser
constructor
A new instance of Parser.
- #parse(io, skip_line_parsing = false, &line_proc) ⇒ Object
Constructor Details
#initialize(break_regexp) ⇒ Parser
Returns a new instance of Parser.
4 5 6 |
# File 'lib/rscm/parser.rb', line 4 def initialize(break_regexp) @break_regexp = break_regexp end |
Instance Method Details
#parse(io, skip_line_parsing = false, &line_proc) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/rscm/parser.rb', line 8 def parse(io, skip_line_parsing=false, &line_proc) parse_until_regexp_matches(io, skip_line_parsing, &line_proc) if(skip_line_parsing) nil else next_result end end |