Class: LogworkManager::Remove
- Defined in:
- lib/logwork_manager/command.rb
Overview
Command for remove action
Instance Method Summary collapse
-
#initialize(arguments, _) ⇒ Remove
constructor
A new instance of Remove.
- #update_issues(issues, _) ⇒ Object
Constructor Details
#initialize(arguments, _) ⇒ Remove
Returns a new instance of Remove.
51 52 53 54 55 56 |
# File 'lib/logwork_manager/command.rb', line 51 def initialize(arguments, _) super raise LogworkException::ArgumentError, "Wrong number of arguments #{@args}" if @args.size != 1 @pos = Integer(@args[0]) end |
Instance Method Details
#update_issues(issues, _) ⇒ Object
58 59 60 61 62 63 |
# File 'lib/logwork_manager/command.rb', line 58 def update_issues(issues, _) check_out_of_bounds(issues, @pos) issues.delete_at @pos issues end |