Class: DRep::DRepExecuter
- Includes:
- DRepRunnable
- Defined in:
- lib/drep/core/drep_executer.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#providers ⇒ Object
readonly
Returns the value of attribute providers.
-
#templates ⇒ Object
readonly
Returns the value of attribute templates.
Instance Method Summary collapse
-
#initialize(environment, providers, templates) ⇒ DRepExecuter
constructor
A new instance of DRepExecuter.
- #run ⇒ Object
Constructor Details
#initialize(environment, providers, templates) ⇒ DRepExecuter
Returns a new instance of DRepExecuter.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/drep/core/drep_executer.rb', line 41 def initialize(environment, providers, templates) unless environment.nil? @env = environment else raise(ArgumentError, "Invalid environment", caller()) end @providers = providers @templates = templates end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
36 37 38 |
# File 'lib/drep/core/drep_executer.rb', line 36 def env @env end |
#providers ⇒ Object (readonly)
Returns the value of attribute providers.
38 39 40 |
# File 'lib/drep/core/drep_executer.rb', line 38 def providers @providers end |
#templates ⇒ Object (readonly)
Returns the value of attribute templates.
39 40 41 |
# File 'lib/drep/core/drep_executer.rb', line 39 def templates @templates end |
Instance Method Details
#run ⇒ Object
52 53 54 |
# File 'lib/drep/core/drep_executer.rb', line 52 def run() perform_tasks() end |