Class: Jets::Command::Console
- Inherits:
-
Object
- Object
- Jets::Command::Console
- Defined in:
- lib/jets/commands/console/console_command.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Instance Method Summary collapse
-
#initialize(environment) ⇒ Console
constructor
A new instance of Console.
- #run ⇒ Object
Constructor Details
#initialize(environment) ⇒ Console
Returns a new instance of Console.
22 23 24 |
# File 'lib/jets/commands/console/console_command.rb', line 22 def initialize(environment) @environment = environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
20 21 22 |
# File 'lib/jets/commands/console/console_command.rb', line 20 def environment @environment end |
Instance Method Details
#run ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/jets/commands/console/console_command.rb', line 26 def run puts Jets::Booter. # Thanks: https://mutelight.org/bin-console require "irb" require "irb/completion" ARGV.clear # https://stackoverflow.com/questions/33070092/irb-start-not-starting/33136762 IRB.start end |