Sha256: 7d1245d1abb2fbb6a3b15c5628253f413334cdd1063eac22ac9f9183075c2741

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module Clowne
  module Declarations
    class Nullify < Base # :nodoc: all
      attr_reader :attributes

      def initialize(*attributes, **)
        raise ArgumentError, "At least one attribute required" if attributes.empty?

        @attributes = attributes
      end

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

Clowne::Declarations.add :nullify, Clowne::Declarations::Nullify

Version data entries

3 entries across 3 versions & 1 rubygems

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