Class: Yadi::FactoryBox

Inherits:
Object
  • Object
show all
Defined in:
lib/yadi/factory_box.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass_name) ⇒ FactoryBox

Returns a new instance of FactoryBox.



5
6
7
# File 'lib/yadi/factory_box.rb', line 5

def initialize(klass_name)
  @klass_name = klass_name
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



3
4
5
# File 'lib/yadi/factory_box.rb', line 3

def contents
  @contents
end

Instance Method Details

#call(container) ⇒ Object



9
10
11
# File 'lib/yadi/factory_box.rb', line 9

def call(container)
  Maker.call(container, @klass_name)
end