Class: HParser::Context
- Inherits:
-
Object
- Object
- HParser::Context
- Defined in:
- lib/hparser/parser.rb
Overview
Parse context.
Context instance is passed to all parsers.
Instance Attribute Summary collapse
-
#footnotes ⇒ Object
readonly
Returns the value of attribute footnotes.
Instance Method Summary collapse
-
#initialize(footnotes = []) ⇒ Context
constructor
A new instance of Context.
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
#footnotes ⇒ Object (readonly)
Returns the value of attribute footnotes.
80 81 82 |
# File 'lib/hparser/parser.rb', line 80 def footnotes @footnotes end |