Class: Pragmater::CLI::Commands::Remove

Inherits:
Sod::Command
  • Object
show all
Defined in:
lib/pragmater/cli/commands/remove.rb

Overview

Removes pragmas.

Instance Method Summary collapse

Constructor Details

#initialize(handler: Remover.new) ⇒ Remove

Returns a new instance of Remove.



20
21
22
23
# File 'lib/pragmater/cli/commands/remove.rb', line 20

def initialize(handler: Remover.new, **)
  super(**)
  @handler = handler
end

Instance Method Details

#callObject



25
# File 'lib/pragmater/cli/commands/remove.rb', line 25

def call = handler.call { |path| io.puts path }