Sha256: a91f522271e7b22dbc38b49ddeb6632b0bbaf9ac0d3c3a5b0280be5a296eaff5
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true require "sod" module Pragmater module CLI module Commands # Inserts pragmas. class Insert < Sod::Command include Dependencies[:settings, :io] handle "insert" description "Insert pragma comments." on Actions::Root on Actions::Comment on Actions::Pattern def initialize(handler: Inserter.new, **) super(**) @handler = handler end def call = handler.call { |path| io.puts path } private attr_reader :handler end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pragmater-16.0.0 | lib/pragmater/cli/commands/insert.rb |