Class: Yarrow::Format::Contents
- Inherits:
-
Object
- Object
- Yarrow::Format::Contents
- Defined in:
- lib/yarrow/format.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(document, metadata) ⇒ Contents
constructor
A new instance of Contents.
Constructor Details
#initialize(document, metadata) ⇒ Contents
Returns a new instance of Contents.
6 7 8 9 |
# File 'lib/yarrow/format.rb', line 6 def initialize(document, ) @document = document @metadata = || {} end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
4 5 6 |
# File 'lib/yarrow/format.rb', line 4 def document @document end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/yarrow/format.rb', line 4 def @metadata end |