Class: RecordX::RXHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/recordx.rb

Instance Method Summary collapse

Constructor Details

#initialize(callerx) ⇒ RXHash

Returns a new instance of RXHash.



12
13
14
15
# File 'lib/recordx.rb', line 12

def initialize(callerx)
  super()
  @callerx = callerx 
end

Instance Method Details

#[]=(name, val) ⇒ Object



17
18
19
20
21
22
# File 'lib/recordx.rb', line 17

def []=(name, val)
  unless @callerx.send(name.to_sym) == val then
    @callerx.send((name.to_s + '=').to_sym, val) 
  end
  super(name, val)
end