Module: Obj

Defined in:
lib/teodoro/obj.rb

Class Method Summary collapse

Class Method Details

.new(data) ⇒ Object



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

def self.new(data)
  (@structs[data.keys] || (@structs[data.keys] = Struct.new(*data.keys)))
    .new(*data.values)
end