Class: Tzispa::Commands::Console
- Defined in:
- lib/tzispa/commands/console.rb
Constant Summary collapse
- ENGINES =
{ 'pry' => 'Pry', 'irb' => 'IRB' }.freeze
- DEFAULT_ENGINE =
['irb'].freeze
Constants inherited from Command
Tzispa::Commands::Command::NO_PROJECT_FOLDER
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #engine ⇒ Object
-
#initialize(options) ⇒ Console
constructor
A new instance of Console.
- #start ⇒ Object
Constructor Details
#initialize(options) ⇒ Console
Returns a new instance of Console.
18 19 20 21 22 |
# File 'lib/tzispa/commands/console.rb', line 18 def initialize() super() = Tzispa::Environment.instance. end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
16 17 18 |
# File 'lib/tzispa/commands/console.rb', line 16 def end |
Instance Method Details
#engine ⇒ Object
29 30 31 |
# File 'lib/tzispa/commands/console.rb', line 29 def engine load_engine .fetch(:engine) { engine_lookup } end |
#start ⇒ Object
24 25 26 27 |
# File 'lib/tzispa/commands/console.rb', line 24 def start prepare engine.start end |