Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [1ef800afe41505fc80256f1a0f9deae54b385e99] by Yurii Rashkovskii

Revision 1ef800afe41505fc80256f1a0f9deae54b385e99, committed by Yurii Rashkovskii · May 4th, 2008 @ 08:01 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...

2 changed files

  • M lib/strokedb/document.rb
  • M spec/lib/strokedb/document/document_spec.rb