Skip to content

Instantly share code, notes, and snippets.

@perezd
Created April 9, 2009 06:58
Show Gist options
  • Save perezd/92299 to your computer and use it in GitHub Desktop.
Save perezd/92299 to your computer and use it in GitHub Desktop.
class Person < Comfy::Base
property :name
property :address
property :friends
property :moods
end
{:name=>#<Comfy::Property::Base:0x58dc84 @casting_type="Person::Name", @master_class=Person, @property_type="Person::Name", @name=:name>, :address=>#<Comfy::Property::Base:0x58d5f4 @casting_type="Person::Address", @master_class=Person, @property_type="Person::Address", @name=:address>, :friends=>#<Comfy::Property::Base:0x58c640 @casting_type="Person::Friend", @master_class=Person, @property_type=:array, @name=:friends>, :moods=>#<Comfy::Property::Base:0x58bc04 @casting_type="Person::Mood", @master_class=Person, @property_type=:array, @name=:moods>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment