Method: Mergit::Processor#scan

Defined in:
lib/mergit/processor.rb

#scan(string) ⇒ Nil

Scans a string

It splits a string up into individual lines via #string_split and passes them to #scan_line.

Parameters:

  • string (String)

    The string to parse.

Returns:

  • (Nil)


103
104
105
# File 'lib/mergit/processor.rb', line 103

def scan string
  string_split(string).each { |line| scan_line line }
end