Class RSCM::Parser
In: lib/rscm/parser.rb
Parent: Object

Methods

new   next_result   parse   parse_line  

Public Class methods

[Source]

   # File lib/rscm/parser.rb, line 4
4:     def initialize(break_regexp)
5:       @break_regexp = break_regexp
6:     end

Public Instance methods

[Source]

    # File lib/rscm/parser.rb, line 8
 8:     def parse(io, skip_line_parsing=false, &line_proc)
 9:       parse_until_regexp_matches(io, skip_line_parsing, &line_proc)
10:       if(skip_line_parsing)
11:         nil
12:       else
13:         next_result
14:       end
15:     end

Protected Instance methods

[Source]

    # File lib/rscm/parser.rb, line 23
23:     def next_result
24:       raise "Must override next_result(line)"
25:     end

[Source]

    # File lib/rscm/parser.rb, line 19
19:     def parse_line(line)
20:       raise "Must override parse_line(line)"
21:     end

[Validate]