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.



70
71
72
# File 'lib/hparser/parser.rb', line 70

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

Instance Attribute Details

#footnotesObject (readonly)

Returns the value of attribute footnotes.



69
70
71
# File 'lib/hparser/parser.rb', line 69

def footnotes
  @footnotes
end