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

Inherits:
Base show all
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.



80
81
82
83
84
# File 'lib/rio/ext/yaml/tie.rb', line 80

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



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

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

Instance Attribute Details

#dirtyObject

Returns the value of attribute dirty.



79
80
81
# File 'lib/rio/ext/yaml/tie.rb', line 79

def dirty
  @dirty
end

Instance Method Details

#dirty?Boolean

Returns:

  • (Boolean)


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

def dirty?()
  @dirty
end