Module: Obj

Defined in:
lib/teodoro/obj.rb

Class Method Summary collapse

Class Method Details

.new(data) ⇒ Object



2
3
4
# File 'lib/teodoro/obj.rb', line 2

def self.new(data)
  Struct.new(*data.keys).new(*data.values)
end