Sha256: 3dda52ad4ef05d3bee40ef3d73799c9a72d4b16386f4a6071942dfd26e0d9a5d
Contents?: true
Size: 592 Bytes
Versions: 8
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true require "sod" module Pragmater module CLI module Commands # Inserts pragmas. class Insert < Sod::Command include Import[: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
8 entries across 8 versions & 1 rubygems