Cannot subclass Curl::Easy

7 views
Skip to first unread message

Andrew Otto

unread,
May 15, 2009, 9:10:19 PM5/15/09
to Curb - Ruby libcurl Bindings
I cannot create a subclass of Curl::Easy. I've tried several
variations of this, but every attempt fails. All of my subclass are
of type Curl::Easy, and do not contain any of the new methods I
define. Here's a really simple example:

class MyCurl < Curl::Easy
end

c = MyCurl.new # => #<Curl::Easy:0x56d768>
c.class # => Curl::Easy
c.kind_of?(MyCurl) # => false

Am I doing something wrong here, or is this a bug?

Thanks!
-Andrew
Reply all
Reply to author
Forward
0 new messages