Method: Object#metaclass

Defined in:
lib/extra_lib/core_ext/object.rb

#metaclassObject

whytheluckystiff: whytheluckystiff.net/articles/seeingMetaclassesClearly.html

Gets a metaclass (a class of a class).

Example: 'hello'.metaclass #=> #<Class:#<String:0xb7a57998>>

Returns: The metaclass.



10
11
12
# File 'lib/extra_lib/core_ext/object.rb', line 10

def metaclass
  class << self; self; end
end