Class: Gumdrop::Util::YamlDoc

Inherits:
Object
  • Object
show all
Defined in:
lib/gumdrop/util/yaml_doc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



9
10
11
# File 'lib/gumdrop/util/yaml_doc.rb', line 9

def body
  @body
end

#dataObject (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

Returns:

  • (Boolean)


18
19
20
# File 'lib/gumdrop/util/yaml_doc.rb', line 18

def is_yamldoc?
  @is_yamldoc
end