Class: Yarrow::Web::Document
- Inherits:
-
Object
- Object
- Yarrow::Web::Document
- Defined in:
- lib/yarrow/web/document.rb
Instance Attribute Summary collapse
-
#content_node ⇒ Object
readonly
Returns the value of attribute content_node.
Instance Method Summary collapse
-
#initialize(node, manifest) ⇒ Document
constructor
A new instance of Document.
- #resource ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(node, manifest) ⇒ Document
Returns a new instance of Document.
6 7 8 9 10 |
# File 'lib/yarrow/web/document.rb', line 6 def initialize(node, manifest) @content_node = node #manifest.add_document(self) @manifest = manifest end |
Instance Attribute Details
#content_node ⇒ Object (readonly)
Returns the value of attribute content_node.
4 5 6 |
# File 'lib/yarrow/web/document.rb', line 4 def content_node @content_node end |