Sha256: 6065e07e0af3566e35c63c27de9697b0fc2919ebadb0c2473df5c30727d75c88
Contents?: true
Size: 646 Bytes
Versions: 15
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResultShortSyntax module Success module Commands class RefuteKwargsContainDataAndExtraKeys < Support::Command attr_reader :kwargs def initialize(kwargs:) @kwargs = kwargs end def call return unless kwargs.has_key?(:data) return if kwargs.keys.one? raise Errors::KwargsContainDataAndExtraKeys.new end end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems