Sha256: ec6f8d8e431e5e504657ce56ce9ffefd7101de24ea3b97878d882ad5ad96d224
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasJSendResultShortSyntax 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 Exceptions::KwargsContainDataAndExtraKeys.new 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/success/commands/refute_kwargs_contain_data_and_extra_keys.rb |