Parent

Caricature::TypeDescriptor

Describes a class/type so it can be proxied more easily This is the base class from which other more specialised descriptors can be used to provide the metadata need to generate the proxy classes

Attributes

instance_members[R]

Gets the instance members of the described type/class

class_members[R]

Gets the class members for the described type/class

Public Class Methods

new(klass) click to toggle source

initializes a new instance of a type descriptor

# File lib/caricature/descriptor.rb, line 15
    def initialize(klass)
      @instance_members = []
      @class_members = []

      unless klass == :in_unit_test_for_class
        initialize_instance_members_for klass
        initialize_class_members_for klass
      end
    end

Public Instance Methods

initialize_class_members_for(klass) click to toggle source

collects the class members of the provided type

# File lib/caricature/descriptor.rb, line 31
    def initialize_class_members_for(klass)
      raise NotImplementedError.new("Override in implementing class")
    end
initialize_instance_members_for(klass) click to toggle source

collects the instance members of the provided type

# File lib/caricature/descriptor.rb, line 26
    def initialize_instance_members_for(klass)
      raise NotImplementedError.new("Override in implementing class")
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.