module DynamicParser::MicroParser::Stateful::InstanceMethods

Public Instance Methods

detect(txt) click to toggle source

This method must return true or false to tell if this MicroParser is responsible for parsing the given txt content.

# File lib/dynamic_parser/micro_parsers/stateful.rb, line 11
def detect(txt)
  true
end
parse!(txt) click to toggle source
# File lib/dynamic_parser/micro_parsers/stateful.rb, line 15
def parse!(txt)
  raise 'This method must parse the given content - statefully - and is not expected to return any value.'
end