[MacRuby-devel] is_a? method

Caio Chassot lists at caiochassot.com
Wed Jan 19 15:15:39 PST 2011


On 2011-01-19, at 20:50 , Robert Rice wrote:
> 
> You instantiated AnArray. Try this:
> 
> class AnArray < Array; end
> 
> AnArray.kind_of?( Array ) 	will return false

Is this what you're looking for?

$ macirb
irb(main):001:0> class AnArray < Array; end
=> nil
irb(main):002:0> AnArray <= Array
=> true



More information about the MacRuby-devel mailing list