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

Version Path
facets-0.6.3 lib/facet-dev/binding/class.rb
facets-1.4.1 forge/core/binding/class.rb
facets-1.4.2 forge/core/binding/class.rb
facets-1.4.3 forge/core/binding/class.rb
facets-1.4.5 snip/core/binding/class.rb
facets-1.4.4 forge/core/binding/class.rb
facets-1.8.0 work/core/binding/class.rb
facets-1.8.20 work/core/binding/class.rb
facets-1.8.49 work/core/binding/class.rb
facets-1.8.8 work/core/binding/class.rb