Multiple instance_of?
- by c00lryguy
How would I make Object#instance_of? accept multiple arguments so that something like the below example would work?
class Foo; end
class Bar; end
class Baz; end
my_foo = Foo.new
my_bar = Bar.new
my_baz = Baz.new
my_foo.instance_of?(Foo, Bar) # => true
my_bar.instance_of?(Foo, Bar) # => true
my_baz.instance_of?(Foo, Bar) # => false