lib/hanami/commands/console.rb in hanami-1.0.0.beta2 vs lib/hanami/commands/console.rb in hanami-1.0.0.beta3
- old
+ new
@@ -1,8 +1,9 @@
require 'hanami/commands/command'
module Hanami
+ # @api private
module Commands
# REPL that supports different engines.
#
# It is run with:
#
@@ -32,25 +33,30 @@
'pry' => 'Pry',
'ripl' => 'Ripl',
'irb' => 'IRB'
}.freeze
+ # @api private
DEFAULT_ENGINE = ['irb'].freeze
# @since 0.1.0
+ # @api private
attr_reader :options
# @param options [Hash] Environment's options
#
# @since 0.1.0
+ # @api private
+ #
# @see Hanami::Environment#initialize
def initialize(options)
super(options)
@options = @environment.to_options
end
# @since 0.1.0
+ # @api private
def start
prepare
engine.start
end