Method: FormatEngine::SpecInfo#parse!
- Defined in:
- lib/format_engine/spec_info.rb
#parse!(target, msg = "#{target.inspect} not found") ⇒ Object
Parse the source string for a target string or regex or raise error.
68 69 70 71 |
# File 'lib/format_engine/spec_info.rb', line 68 def parse!(target, msg = "#{target.inspect} not found") fail "Parse error: #{msg}" unless parse(target) @match end |