Class: Kwaff::Document
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#root ⇒ Object
Returns the value of attribute root.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(translator, level = 0) ⇒ Object
-
#initialize(headers = OrderedHash.new, root = nil) ⇒ Document
constructor
A new instance of Document.
Methods inherited from Node
Constructor Details
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
68 69 70 |
# File 'lib/kwaff/node.rb', line 68 def headers @headers end |
#root ⇒ Object
Returns the value of attribute root.
69 70 71 |
# File 'lib/kwaff/node.rb', line 69 def root @root end |
Instance Method Details
#accept(translator, level = 0) ⇒ Object
61 62 63 |
# File 'lib/kwaff/node.rb', line 61 def accept(translator, level=0) return translator.translate_document(self, level) end |