Changeset [feb7619a2639cdc5428c98aba958b7f92049743f] by Yurii Rashkovskii

May 4th, 2008 @ 11:02 AM

Now Document.new and #update_slots are able to accept 'method-based' slots, like:

User = Meta.new do

def email=(v)

  1. ...

end

end

User.new(:email => "yrashk@idbns.com") or user.update_slots(:email => "yrashk@idbns.com") will pass control to User#email= instead of saving it directly

to the slot.

http://github.com/yrashk/stroked...

Committed by Yurii Rashkovskii

  • M lib/strokedb/document.rb
  • M spec/lib/strokedb/document/document_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

StrokeDB is an embeddable distributed document database written in Ruby

Shared Ticket Bins