Method: Object#class
- Defined in:
- lib/source/ruby.rb
#class ⇒ Object
call-seq:
obj.class -> class
Returns the class of obj. This method must always be called with an explicit receiver, as class is also a reserved word.
'a'.class #=> String
self.class #=> Object
248 249 250 |
# File 'lib/source/ruby.rb', line 248 def class `this.__class__` end |