app/lib/parser_matcher.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ParserMatcher
  def self.parse(pattern, line)
    re = Regexp.new(pattern)
    matches = re.match(line)
    matches.captures if matches
  end
end