Class: Dee::Container::Factory
- Inherits:
-
Object
- Object
- Dee::Container::Factory
- Defined in:
- lib/dee/container.rb
Direct Known Subclasses
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(&block) ⇒ Factory
constructor
A new instance of Factory.
Constructor Details
#initialize(&block) ⇒ Factory
Returns a new instance of Factory.
4 5 6 |
# File 'lib/dee/container.rb', line 4 def initialize(&block) @block = block end |
Instance Method Details
#create ⇒ Object
8 9 10 |
# File 'lib/dee/container.rb', line 8 def create @block.call end |