Method: Utils::JSer::JSHash#initialize

Defined in:
lib/ngi/utils/jser.rb

#initialize(hash) ⇒ JSHash

Returns a new instance of JSHash.



28
29
30
31
32
33
# File 'lib/ngi/utils/jser.rb', line 28

def initialize(hash)
  super
  hash.each do |key, val|
    self[key] = val
  end
end