Sha256: 49975efddcf3824862ebdd3c280056c3421ac03ac80fca4dc6957ae86222d034
Contents?: true
Size: 612 Bytes
Versions: 15
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResultShortSyntax module Error module Commands class AssertEitherArgsOrKwargsArePassed < Support::Command attr_reader :args, :kwargs def initialize(args:, kwargs:) @args = args @kwargs = kwargs end def call raise Errors::BothArgsAndKwargsArePassed.new if args.any? && kwargs.any? end end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems