Class: Usine::OperationFactory
- Inherits:
-
Object
- Object
- Usine::OperationFactory
- Defined in:
- lib/usine/operation_factory.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#operation_class ⇒ Object
readonly
Returns the value of attribute operation_class.
Instance Method Summary collapse
-
#initialize(operation_class, &block) ⇒ OperationFactory
constructor
A new instance of OperationFactory.
Constructor Details
#initialize(operation_class, &block) ⇒ OperationFactory
Returns a new instance of OperationFactory.
6 7 8 9 |
# File 'lib/usine/operation_factory.rb', line 6 def initialize(operation_class, &block) @operation_class = operation_class @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/usine/operation_factory.rb', line 4 def block @block end |
#operation_class ⇒ Object (readonly)
Returns the value of attribute operation_class.
3 4 5 |
# File 'lib/usine/operation_factory.rb', line 3 def operation_class @operation_class end |