module Slaw::Parse::GrammarHelpers
These helpers are mixed into the treetop grammar and provide a means for exposing options into the grammar.
Attributes
options[W]
Public Instance Methods
options()
click to toggle source
# File lib/slaw/parse/grammar_helpers.rb, line 10 def options @options ||= {} end
postprocess(doc)
click to toggle source
Grammars
can override this method to run post-processing on the resulting XML document.
@param doc [Nokogiri::XML::Document] @return [Nokogiri::XML::Document]
# File lib/slaw/parse/grammar_helpers.rb, line 19 def postprocess(doc) end