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.

Sean O'Halpin's latest activity

Thursday, October 15 2009
10 Support for 'predicate' and 'clearer' methods was updated in doodle
  • Sean O'Halpin
    Sean O'Halpin commented at 12:28 PM

    I 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
7 update docs was updated in doodle
10 Support for 'predicate' and 'clearer' methods was updated in doodle
  • Sean O'Halpin
    • State changed from new to resolved
    by Sean O'Halpin at 2:53 AM

    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...

11 Support for 'readonly' attributes was updated in doodle
  • Sean O'Halpin
    Sean O'Halpin commented at 2:37 AM

    Regarding 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...

  • Sean O'Halpin
    • State changed from new to resolved
    by Sean O'Halpin at 2:34 AM

    Use the :readonly option (introduced in version 0.1.9):

    require 'doodle'
    
    class Foo < Doodle
      counter = 0
      has :uid, :readonly => true do
        init { counter ...
9 Store defaults after first request was updated in doodle
  • Sean O'Halpin
    • State changed from new to resolved
    by Sean O'Halpin at 2:29 AM

    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
5 rework collectors for 1.9 was updated in doodle
6 'union' has was updated in doodle
  • Sean O'Halpin
    • Milestone set to Release 0.2.4
    • Tag changed from core, hash to core, has
    by Sean O'Halpin at 5:59 PM
8 visitor framework was created in doodle
  • Sean O'Halpin
    Sean O'Halpin created the ticket at 5:59 PM

    make it easy to define your own visitors

    and redo to_hash to use this (rather than current hack with to_yaml)