Class: Ledmon::Monster::Runner
- Inherits:
-
Object
- Object
- Ledmon::Monster::Runner
- Defined in:
- lib/ledmon/monster/runner.rb
Defined Under Namespace
Classes: Error, ScriptNotFoundError
Instance Attribute Summary collapse
-
#executor ⇒ Object
readonly
Returns the value of attribute executor.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#script ⇒ Object
readonly
Returns the value of attribute script.
-
#script_path ⇒ Object
readonly
Returns the value of attribute script_path.
Instance Method Summary collapse
-
#initialize(path:) ⇒ Runner
constructor
A new instance of Runner.
- #run! ⇒ Object
Constructor Details
Instance Attribute Details
#executor ⇒ Object (readonly)
Returns the value of attribute executor.
9 10 11 |
# File 'lib/ledmon/monster/runner.rb', line 9 def executor @executor end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/ledmon/monster/runner.rb', line 6 def path @path end |
#script ⇒ Object (readonly)
Returns the value of attribute script.
8 9 10 |
# File 'lib/ledmon/monster/runner.rb', line 8 def script @script end |
#script_path ⇒ Object (readonly)
Returns the value of attribute script_path.
7 8 9 |
# File 'lib/ledmon/monster/runner.rb', line 7 def script_path @script_path end |
Instance Method Details
#run! ⇒ Object
17 18 19 20 21 |
# File 'lib/ledmon/monster/runner.rb', line 17 def run! load_script! setup! execute! end |