Method: App::Replacer.scan_string
- Defined in:
- lib/core/replacer.rb
.scan_string(line) ⇒ Object
Return Array of Hashes containing all matchers. Use this for validation.
17 18 19 20 21 22 23 24 25 |
# File 'lib/core/replacer.rb', line 17 def self.scan_string(line) matchers = {} errors = [] x, matchers, errors = process_matchers(line, matchers, errors, OP_SCAN) if line =~ REGEXP_MATCHER return { :matchers => matchers, :errors => errors } end |