Class: Fixtury::DefinitionExecutor
- Inherits:
-
Object
- Object
- Fixtury::DefinitionExecutor
- Defined in:
- lib/fixtury/definition_executor.rb
Overview
A container that manages the execution of a definition in the context of a store.
Defined Under Namespace
Classes: Output
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(store: nil, definition:) ⇒ DefinitionExecutor
constructor
A new instance of DefinitionExecutor.
Constructor Details
#initialize(store: nil, definition:) ⇒ DefinitionExecutor
Returns a new instance of DefinitionExecutor.
22 23 24 25 26 |
# File 'lib/fixtury/definition_executor.rb', line 22 def initialize(store: nil, definition:) @store = store @definition = definition @output = Output.new end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
20 21 22 |
# File 'lib/fixtury/definition_executor.rb', line 20 def definition @definition end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
20 21 22 |
# File 'lib/fixtury/definition_executor.rb', line 20 def output @output end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
20 21 22 |
# File 'lib/fixtury/definition_executor.rb', line 20 def store @store end |
Instance Method Details
#call ⇒ Object
28 29 30 31 |
# File 'lib/fixtury/definition_executor.rb', line 28 def call run_definition output end |