Sha256: 36a67311e5ed4583f8be885b6a6063b36466a23a0af9bd6a38c055ad9ce84b9e

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Method
            module Entities
              class Key
                include Support::Copyable
                include Support::Delegate

                attr_reader :value

                delegate :to_s, :to_sym, to: :value

                def initialize(value)
                  @value = value
                end

                def ==(other)
                  return unless other.instance_of?(self.class)

                  return false if value != other.value

                  true
                end

                def to_args
                  [value]
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb