Sha256: 47537f828e2484e1141e1e9155b02b3635969eafa631026cfaa075c695952aaa
Contents?: true
Size: 603 Bytes
Versions: 13
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true require "sod" module Pragmater module CLI module Commands # Removes pragmas. class Remove < Sod::Command include Import[:input, :kernel] handle "remove" description "Remove pragma comments." on Actions::Root on Actions::Comment on Actions::Pattern def initialize(handler: Remover.new, **) super(**) @handler = handler end def call = handler.call(input) { |path| kernel.puts path } private attr_reader :handler end end end end
Version data entries
13 entries across 13 versions & 1 rubygems