Class: RIO::Ext::YAML::Tie::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rio/ext/yaml/tie.rb

Direct Known Subclasses

Root

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc, cont = nil) ⇒ Base

Returns a new instance of Base.



86
87
88
89
# File 'lib/rio/ext/yaml/tie.rb', line 86

def initialize(doc,cont=nil)
  @doc = doc
  @cont = cont
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



85
86
87
# File 'lib/rio/ext/yaml/tie.rb', line 85

def doc
  @doc
end