Sha256: 6c6715d24ce1e96835dfe730a7c88ddd9ac272a5c6a1c7c325cdb375996fed42

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

module AR
  module Enum
    module CommandRecorder
      def create_enum(name, values)
        record(__method__, [name, values])
      end

      def rename_enum_label(name, from, to)
        record(__method__, [name, from, to])
      end

      def invert_create_enum(args)
        name, _ = args
        [:drop_enum, name]
      end

      def invert_rename_enum_label(args)
        name, to, from = args
        [:rename_enum_label, [name, from, to]]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ar-enum-0.5.0 lib/ar/enum/command_recorder.rb
ar-enum-0.4.0 lib/ar/enum/command_recorder.rb
ar-enum-0.3.0 lib/ar/enum/command_recorder.rb
ar-enum-0.2.3 lib/ar/enum/command_recorder.rb
ar-enum-0.2.2 lib/ar/enum/command_recorder.rb
ar-enum-0.2.1 lib/ar/enum/command_recorder.rb
ar-enum-0.2.0 lib/ar/enum/command_recorder.rb