Sha256: 20ee89277561e6106e66b56fe2016e2b3b1df5596496ee2d446e2595c2ca1f39
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasJSendResultShortSyntax module Error module Commands class AssertEitherArgsOrKwargsArePassed < Support::Command attr_reader :args, :kwargs def initialize(args:, kwargs:) @args = args @kwargs = kwargs end def call raise Exceptions::BothArgsAndKwargsArePassed.new if args.any? && kwargs.any? 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_either_args_or_kwargs_are_passed.rb |