class Mummy::Parsers::BaseParser
Attributes
input[R]
options[R]
Public Class Methods
new(input, options = {})
click to toggle source
# File lib/mummy/parsers/base_parser.rb, line 4 def initialize(input, options = {}) @input = input @options = options end
provide_options(slop_options)
click to toggle source
Override this in a subclass if you want the parser to support command line options
-
see
MarkdownParser
for an example, or the ‘slop` readme
# File lib/mummy/parsers/base_parser.rb, line 16 def self.provide_options(slop_options) end
Public Instance Methods
items()
click to toggle source
# File lib/mummy/parsers/base_parser.rb, line 9 def items raise NotImplementedError, "#items must be imlemented by a BaseParser subclass" end