Class: HParser::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/hparser/parser.rb

Overview

Parse context.

Context instance is passed to all parsers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(footnotes = []) ⇒ Context

Returns a new instance of Context.



81
82
83
# File 'lib/hparser/parser.rb', line 81

def initialize(footnotes=[])
  @footnotes = footnotes
end

Instance Attribute Details

#footnotesObject (readonly)

Returns the value of attribute footnotes.



80
81
82
# File 'lib/hparser/parser.rb', line 80

def footnotes
  @footnotes
end