Class: Class

Inherits:
Object show all
Defined in:
lib/stratagem/extensions/class.rb

Instance Method Summary collapse

Instance Method Details

#classesObject



2
3
4
5
6
7
# File 'lib/stratagem/extensions/class.rb', line 2

def classes
  list = [self]
  c = self
  list << c while ((c = c.superclass) != nil)
  list
end