Files

DSLKit::Eigenclass

This module contains some handy methods to deal with eigenclasses. Those are also known as virtual classes, singleton classes, metaclasses, plus all the other names Matz doesn’t like enough to actually accept one of the names.

The module can be included into other modules/classes to make the methods available.

Public Instance Methods

eigenclass() click to toggle source

Returns the eigenclass of this object.

# File lib/dslkit/polite.rb, line 15
    def eigenclass
      class << self; self; end
    end
eigenclass_eval(&block) click to toggle source

Evaluates the block in context of the eigenclass of this object.

# File lib/dslkit/polite.rb, line 20
    def eigenclass_eval(&block)
      eigenclass.instance_eval(&block)
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.