Sha256: 1e9f2f88b4d37d75195edee6045c224f8ddb72156d6a2d0bc50873408b399ecc
Contents?: true
Size: 447 Bytes
Versions: 42
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module Pragmater module Processors # Handles the insertion or removal of pragma comments. class Handler DEFAULTS = {insert: Inserter, remove: Remover}.freeze def initialize processors: DEFAULTS @processors = processors end def call(action, comments, body) = processors.fetch(action).new(comments, body).call private attr_reader :processors end end end
Version data entries
42 entries across 42 versions & 1 rubygems