Sha256: 293f4441989bcc68a9050e3f1a3ce4875e4ab33c1dcab9626a2f38f5751f3805

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

module Micro
  module Attributes
    module AttributesUtils
      ARGUMENT_ERROR_MSG = 'argument must be a Hash'

      def self.hash_argument!(arg)
        return arg if arg.is_a?(Hash)

        raise ArgumentError, ARGUMENT_ERROR_MSG
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
u-attributes-0.8.0 lib/micro/attributes/attributes_utils.rb