Class: Vivlio::Starter::CLI::RenameCommandExecutor
- Inherits:
-
Object
- Object
- Vivlio::Starter::CLI::RenameCommandExecutor
- Defined in:
- lib/vivlio/starter/cli/rename.rb
Overview
Instance Method Summary collapse
-
#call(old_arg = nil, new_arg = nil) ⇒ void
リネーム処理を実行する.
-
#initialize(options = {}) ⇒ RenameCommandExecutor
constructor
A new instance of RenameCommandExecutor.
Constructor Details
#initialize(options = {}) ⇒ RenameCommandExecutor
Returns a new instance of RenameCommandExecutor.
57 58 59 |
# File 'lib/vivlio/starter/cli/rename.rb', line 57 def initialize( = {}) @options = ( || {}).dup end |
Instance Method Details
#call(old_arg = nil, new_arg = nil) ⇒ void
This method returns an undefined value.
リネーム処理を実行する
67 68 69 70 71 72 73 74 75 |
# File 'lib/vivlio/starter/cli/rename.rb', line 67 def call(old_arg = nil, new_arg = nil) enable_verbose_mode if old_arg.nil? && new_arg.nil? renumber_all_chapters else rename_single_chapter(old_arg, new_arg) end end |