Module: Cequel::Record::Properties::ConstructorMethods

Defined in:
lib/cequel/record/properties.rb

Instance Method Summary collapse

Instance Method Details

#new(*args, &block) ⇒ Object



53
54
55
56
57
58
# File 'lib/cequel/record/properties.rb', line 53

def new(*args, &block)
  new_empty.tap do |record|
    record.__send__(:initialize_new_record, *args)
    yield record if block_given?
  end
end