Class: Yarrow::Format::Contents

Inherits:
Object
  • Object
show all
Defined in:
lib/yarrow/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#documentObject (readonly)

Returns the value of attribute document.



4
5
6
# File 'lib/yarrow/format.rb', line 4

def document
  @document
end

#metadataObject (readonly)

Returns the value of attribute metadata.



4
5
6
# File 'lib/yarrow/format.rb', line 4

def 
  @metadata
end