Sha256: b86f7f8340a3354044911c1a0fe0683d91c91e30fd191d98b1fcc32a40c23521
Contents?: true
Size: 356 Bytes
Versions: 10
Compression:
Stored size: 356 Bytes
Contents
class Binding # Returns the class in the binding context # this is just a shortcut for self.class # You can still get to the old class (of the binding) # via #__class__. (NOTE: Is this really a good idea?) alias_method( :__class__, :class ) unless respond_to?( :__class__ ) def class() @class ||= eval( "self.class" ) @class end end
Version data entries
10 entries across 10 versions & 1 rubygems