Sha256: fcba82342cf6615ec9b6902632d15bb3c758f17e6d32fa6de7f796d65a24c7ae

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

module Clowne
  module Declarations
    class AfterClone < Base # :nodoc: all
      attr_reader :block

      def initialize(*, &block)
        raise ArgumentError, "Block is required for after_clone" unless block

        @block = block
      end

      def compile(plan)
        plan.add(:after_clone, self)
      end
    end
  end
end

Clowne::Declarations.add :after_clone, Clowne::Declarations::AfterClone

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clowne-1.5.0 lib/clowne/declarations/after_clone.rb
clowne-1.4.0 lib/clowne/declarations/after_clone.rb
clowne-1.3.0 lib/clowne/declarations/after_clone.rb