module Bodhi::Factories::ClassMethods
Public Instance Methods
factory()
click to toggle source
Returns the Classes Bodhi::Factory
object @return [Bodhi::Factory]
# File lib/bodhi-slam/factory.rb, line 6 def factory; @factory; end
generates(name, options)
click to toggle source
Define a factory generator with the given name
and options
and append to the Classes Bodhi::Factory
@param name [String] the name of the property @param options [Hash] the Bodhi::Properties
@return [nil]
# File lib/bodhi-slam/factory.rb, line 13 def generates(name, options) @factory.add_generator(name.to_sym, options) return nil end