Class: RIO::Ext::YAML::Tie::Root

Inherits:
Base show all
Extended by:
Forwardable
Defined in:
lib/rio/ext/yaml/tie.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#doc

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ Root

Returns a new instance of Root.



94
95
96
97
98
# File 'lib/rio/ext/yaml/tie.rb', line 94

def initialize(doc)
  @doc = doc
  @root = Tie::Hash.new(@doc,self)
  @dirty = false
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



106
107
108
# File 'lib/rio/ext/yaml/tie.rb', line 106

def method_missing(sym,*args)
  @root.__send__(sym,*args)
end

Instance Attribute Details

#dirtyObject

Returns the value of attribute dirty.



93
94
95
# File 'lib/rio/ext/yaml/tie.rb', line 93

def dirty
  @dirty
end

Instance Method Details

#dirty?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/rio/ext/yaml/tie.rb', line 102

def dirty?()
  @dirty
end