That's a cool idea.

But I don't feel like I have time to tinker with design this week if I have
something that seems to work.


On Mon, Jun 10, 2013 at 4:24 PM, Jon Karna <notifications@github.com> wrote:

> In lib/typhoid/response.rb:
>
> > @@ -0,0 +1,12 @@
> > +require 'typhoeus'
> > +module Typhoid
> > +  class Response < TyphoeusDecorator
>
> This probably doesn't work, but I have been trying to do something like
> this for a while.
>
> module Typhoid
>   class TyphoeusDecorator < Class
>
>     def initialize(source_klass)
>       klass = super(SimpleDelegator)
>       klass.extend(TyphoeusDecorations)
>       klass.decorate(source_klass)
>       klass
>     end
>
>   end
> end
>
> class Response < TyphoeusDecorator.new(Typhoeus::Response)
>
> end
>
> class Request < TyphoeusDecorator.new(Typhoeus::Request)
>
> end
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sportngin/typhoid/pull/19/files#r4622012>
> .
>



-- 
*Jon Phenow*
SOFTWARE ENGINEER
612.379.1030 (office)

Sport Ngin | 1400 Van Buren St NE, Minneapolis MN 55413
sportngin.com | twitter.com/sportngin | facebook.com/sportngin