Class: Dms::Document
- Inherits:
-
Object
- Object
- Dms::Document
- Defined in:
- lib/dms/types.rb
Overview
Parsed DMS document.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#original_forms ⇒ Object
Returns the value of attribute original_forms.
Instance Method Summary collapse
- #front_matter ⇒ Object
-
#initialize(meta, body, comments = [], original_forms = []) ⇒ Document
constructor
A new instance of Document.
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(, body, comments = [], original_forms = []) @meta = @body = body @comments = comments @original_forms = original_forms end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
118 119 120 |
# File 'lib/dms/types.rb', line 118 def body @body end |
#comments ⇒ Object
Returns the value of attribute comments.
118 119 120 |
# File 'lib/dms/types.rb', line 118 def comments @comments end |
#meta ⇒ Object
Returns the value of attribute meta.
118 119 120 |
# File 'lib/dms/types.rb', line 118 def @meta end |
#original_forms ⇒ Object
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_matter ⇒ Object
127 |
# File 'lib/dms/types.rb', line 127 def front_matter; @meta; end |