Parent

Files

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
15:     def initialize(klass)
16:       @instance_members = []
17:       @class_members = []
18: 
19:       unless klass == :in_unit_test_for_class
20:         initialize_instance_members_for klass
21:         initialize_class_members_for klass
22:       end
23:     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
31:     def initialize_class_members_for(klass)
32:       raise NotImplementedError.new("Override in implementing class")
33:     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
26:     def initialize_instance_members_for(klass)
27:       raise NotImplementedError.new("Override in implementing class")
28:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.