Class: RgGen::Core::Builder::GeneralFeatureEntry
Instance Attribute Summary
#name, #registry
Instance Method Summary
collapse
#attach_context
#build_factory, #eval_bodies, #initialize, #match_entry_type?
Instance Method Details
#define_factory ⇒ Object
Also known as:
factory
15
16
17
|
# File 'lib/rggen/core/builder/general_feature_entry.rb', line 15
def define_factory(&)
@factory.class_exec(&)
end
|
#define_feature ⇒ Object
Also known as:
feature
21
22
23
|
# File 'lib/rggen/core/builder/general_feature_entry.rb', line 21
def define_feature(&)
@feature.class_exec(&)
end
|
#setup(base_feature, base_factory, context) ⇒ Object
9
10
11
12
13
|
# File 'lib/rggen/core/builder/general_feature_entry.rb', line 9
def setup(base_feature, base_factory, context)
@feature = Class.new(base_feature)
@factory = Class.new(base_factory)
attach_shared_context(context, @feature, @factory, self)
end
|