Courtenay wrote:
> Is there a reason it needs to be more complicated than this?
> 
> class Foo
> end
> 
> Foo.is_a?(Class)
> => true
> 
> Foo.new.is_a?(Class)
> => false

You can do that? Whoaaaaa...

That totally makes sense. I also found out about Object#instance_of? yesterday.

Thanks for the tip!

Edward
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to