Module: Kernel

Defined in:
lib/lab42/data_class/kernel.rb

Instance Method Summary collapse

Instance Method Details

#DataClass(*args, **kwds, &blk) ⇒ Object



4
5
6
7
# File 'lib/lab42/data_class/kernel.rb', line 4

def DataClass(*args, **kwds, &blk)
  proxy = Lab42::DataClass::Proxy.new(*args, **kwds, &blk)
  proxy.define_class!
end

#Pair(first, second) ⇒ Object



9
10
11
# File 'lib/lab42/data_class/kernel.rb', line 9

def Pair(first, second)
  Lab42::Pair.new(first, second)
end

#Triple(first, second, third) ⇒ Object



13
14
15
# File 'lib/lab42/data_class/kernel.rb', line 13

def Triple(first, second, third)
  Lab42::Triple.new(first, second, third)
end