Class: Charyf::Console
- Defined in:
- lib/charyf/utils/commands/console/console_command.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#console ⇒ Object
readonly
Returns the value of attribute console.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #environment ⇒ Object (also: #environment?)
-
#initialize(app, options = {}) ⇒ Console
constructor
A new instance of Console.
- #set_environment! ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(app, options = {}) ⇒ Console
16 17 18 19 20 21 |
# File 'lib/charyf/utils/commands/console/console_command.rb', line 16 def initialize(app, = {}) @app = app @options = @console = app.config.console || IRB end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
14 15 16 |
# File 'lib/charyf/utils/commands/console/console_command.rb', line 14 def app @app end |
#console ⇒ Object (readonly)
Returns the value of attribute console.
14 15 16 |
# File 'lib/charyf/utils/commands/console/console_command.rb', line 14 def console @console end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/charyf/utils/commands/console/console_command.rb', line 14 def @options end |
Class Method Details
.start(*args) ⇒ Object
10 11 12 |
# File 'lib/charyf/utils/commands/console/console_command.rb', line 10 def self.start(*args) new(*args).start end |
Instance Method Details
#environment ⇒ Object Also known as: environment?
23 24 25 |
# File 'lib/charyf/utils/commands/console/console_command.rb', line 23 def environment [:environment] end |