Class: RSCM::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/rscm/parser.rb

Direct Known Subclasses

SubversionLogEntryParser

Instance Method Summary collapse

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