Class: Gumdrop::Util::YamlDoc
- Inherits:
-
Object
- Object
- Gumdrop::Util::YamlDoc
- Defined in:
- lib/gumdrop/util/yaml_doc.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(source, extended_support = false) ⇒ YamlDoc
constructor
A new instance of YamlDoc.
- #is_yamldoc? ⇒ Boolean
Constructor Details
#initialize(source, extended_support = false) ⇒ YamlDoc
Returns a new instance of YamlDoc.
11 12 13 14 15 16 |
# File 'lib/gumdrop/util/yaml_doc.rb', line 11 def initialize(source, extended_support=false) @data= {} @body= source @extended_support= extended_support _compile end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/gumdrop/util/yaml_doc.rb', line 9 def body @body end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/gumdrop/util/yaml_doc.rb', line 9 def data @data end |
Instance Method Details
#is_yamldoc? ⇒ Boolean
18 19 20 |
# File 'lib/gumdrop/util/yaml_doc.rb', line 18 def is_yamldoc? @is_yamldoc end |