Flowdock
method

subclasses

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Class
subclasses() public

Returns an array with the direct children of self.

Integer.subclasses # => [Fixnum, Bignum]

class Foo; end
class Bar < Foo; end
class Baz < Bar; end

Foo.subclasses # => [Bar]
Show source
Register or log in to add new notes.