Class: Dms::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/dms/types.rb

Overview

Parsed DMS document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta, body, comments = [], original_forms = []) ⇒ Document

Returns a new instance of Document.



120
121
122
123
124
125
# File 'lib/dms/types.rb', line 120

def initialize(meta, body, comments = [], original_forms = [])
  @meta = meta
  @body = body
  @comments = comments
  @original_forms = original_forms
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



118
119
120
# File 'lib/dms/types.rb', line 118

def body
  @body
end

#commentsObject

Returns the value of attribute comments.



118
119
120
# File 'lib/dms/types.rb', line 118

def comments
  @comments
end

#metaObject

Returns the value of attribute meta.



118
119
120
# File 'lib/dms/types.rb', line 118

def meta
  @meta
end

#original_formsObject

Returns the value of attribute original_forms.



118
119
120
# File 'lib/dms/types.rb', line 118

def original_forms
  @original_forms
end

Instance Method Details

#front_matterObject



127
# File 'lib/dms/types.rb', line 127

def front_matter; @meta; end