Sha256: eb05c6368771eb818ec14baa9c43b5d6274c755bb79a79b2cfb8cf3aaed9535a

Contents?: true

Size: 728 Bytes

Versions: 2

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Commands
          class IsStep < Support::Command
            ##
            # @!attribute [r] step
            #   @return [Object] Can be any type.
            #
            attr_reader :step

            ##
            # @param step [Object] Can be any type.
            # @return [void]
            #
            def initialize(step:)
              @step = step
            end

            ##
            # @return [Boolean]
            #
            def call
              step.class.include?(Entities::Step::Concern)
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb