Module: SampleModels
- Defined in:
- lib/sample_models.rb,
lib/sample_models/model.rb,
lib/sample_models/sampler.rb,
lib/sample_models/creation.rb,
lib/sample_models/initializer.rb,
lib/sample_models/attribute_sequence.rb
Defined Under Namespace
Modules: ARClassMethods, AttributeSequence
Classes: Creation, Initializer, Model, Sampler
Constant Summary
collapse
- @@models =
Hash.new { |h, model_class|
h[model_class] = Model.new(model_class)
}
- @@samplers =
Hash.new { |h, model_class|
h[model_class] = Sampler.new(model_class)
}
Class Method Summary
collapse
Class Method Details
12
13
14
|
# File 'lib/sample_models.rb', line 12
def self.configure(model_class, &block)
samplers[model_class].configure(block)
end
|
.init ⇒ Object
16
17
18
|
# File 'lib/sample_models.rb', line 16
def self.init
Initializer.new.run
end
|