Class: Command::Console
Instance Attribute Summary
Attributes inherited from CommandBase
#stream_io
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from CommandBase
#disable_logging, #display_help!, execute!, #execute!, #force_change_settings_function, help, #hook_call, #load_local_settings, #tagname_to_ids
Constructor Details
14
15
16
17
18
19
20
|
# File 'lib/command/console.rb', line 14
def initialize
super()
@opt.separator "\n \u30FB\u958B\u767A\u6642\u306E\u307F\u6709\u52B9\u306B\u306A\u308B\u30B3\u30F3\u30BD\u30FC\u30EB\u3002pry \u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5FC5\u9808\n HELP\nend\n"
|
Class Method Details
.oneline_help ⇒ Object
10
11
12
|
# File 'lib/command/console.rb', line 10
def self.oneline_help
"開発用コンソール"
end
|
Instance Method Details
#execute(argv) ⇒ Object
22
23
24
25
26
27
28
29
30
|
# File 'lib/command/console.rb', line 22
def execute(argv)
$stdout = STDOUT
super
unless defined?(Pry)
error "gem install pry をが必要です"
exit Narou::EXIT_ERROR_CODE
end
Pry.start(TOPLEVEL_BINDING)
end
|