Class: Class

Inherits:
Object show all
Defined in:
lib/glue/object.rb,
lib/glue.rb

Overview

Code from RubyOnRails (www.rubyonrails.com)

Instance Method Summary collapse

Instance Method Details

#remove_subclassesObject

:nodoc:



25
26
27
# File 'lib/glue/object.rb', line 25

def remove_subclasses
  Object.remove_subclasses_of(self)
end

#subclassesObject



29
30
31
# File 'lib/glue/object.rb', line 29

def subclasses
  Object.subclasses_of(self)
end

#to_iObject

– gmosx: is this really needed? ++



34
35
36
# File 'lib/glue.rb', line 34

def to_i
	return self.hash
end