On 5/16/07, Dave Hoefler <dhoefler / gmail.com> wrote:
<snip>
> module Office
>   def self.included(base)
>     base.extend(ClassMethods)
>   end
>
>   module ClassMethods
>     def working(options={})
>       # do something based off the options
>     end
>   end
>
> end
>
> In one of my models I can then access the method 'working' by:
>
> class ModelName < ActiveRecord::Base

#given that you include Office before
      include Office
>    working :task => "Take a break!"
> end
>
>
> Thanks again
>
> -Dave
Cheers
Robert

-- 
You see things; and you say Why?
But I dream things that never were; and I say Why not?
-- George Bernard Shaw