Sean O'Halpin
Developer · Account owner
Sean O'Halpin's latest activity
Thursday, October 15 2009
-
Sean O'Halpin commented at 12:28 PMI like #has?
obj.has?(name) would be syntactic sugar for
obj.doodle.attributes.key?(name) where obj can be either a class or an
instance.I'll include this in t...
Sunday, October 11 2009
-
- State changed from new to resolved
As you have pointed out, #instance_variable_defined? and #remove_instance_variable do exactly what you want.
However, using them does rely on the underlying imp...
-
Sean O'Halpin commented at 2:37 AMRegarding your other points:
By all means tag a ticket with "feature" to denote a feature request.
I'd welcome any patches - no promises to incorporate them tho...
-
- State changed from new to resolved
Use the :readonly option (introduced in version 0.1.9):
require 'doodle' class Foo < Doodle counter = 0 has :uid, :readonly => true do init { counter ...
-
- State changed from new to resolved
Apologies for the long delay in replying.
For your use case, I would use #init rather than #default. Something like this:
require 'doodle' class Foo < Doodle ...
Sunday, March 15 2009
-
Sean O'Halpin created the ticket at 5:59 PMmake it easy to define your own visitors
and redo to_hash to use this (rather than current hack with to_yaml)