Sha256: 35663233aba9bf94429bec56e5b1df3e123c80320e93fdbd09852069edb68fcb

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasJSendResultShortSyntax
        module Error
          module Commands
            class AssertArgsCountLowerThanThree < Support::Command
              attr_reader :args

              def initialize(args:)
                @args = args
              end

              def call
                raise Exceptions::MoreThanTwoArgsArePassed.new if args.size > 2
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convenient_service-0.13.0 lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/commands/assert_args_count_lower_than_three.rb