Skip to content

Instantly share code, notes, and snippets.

@jakehow
Created March 9, 2009 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakehow/76417 to your computer and use it in GitHub Desktop.
Save jakehow/76417 to your computer and use it in GitHub Desktop.
>> class Blah < CouchRest::ExtendedDocument
>> property :myval
>> property :trueval
>> def myval=(val)
>> self.trueval = val
>> end
>> end
=> nil
>> b = Blah.new(:myval => 10)
=> {"couchrest-type"=>"Blah", "myval"=>10}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment