Module: HashInit

Defined in:
lib/_utils.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*h) ⇒ Object



21
22
23
24
25
# File 'lib/_utils.rb', line 21

def initialize(*h)
  if h.length == 1 && h.first.kind_of?(Hash)
    h.first.each { |k,v| send("#{k}=",v) }
  end
end