Class: Hash Private

Inherits:
Object show all
Defined in:
lib/stub_requests/core_ext/object/blank.rb,
lib/stub_requests/core_ext/array/extract_options.rb,
lib/stub_requests/core_ext/string/to_route_param.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

:nodoc:key => "value",

Instance Method Summary collapse

Instance Method Details

#extractable_options?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


6
7
8
# File 'lib/stub_requests/core_ext/array/extract_options.rb', line 6

def extractable_options?
  instance_of?(Hash)
end

#to_route_paramObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

:nodoc:



30
31
32
33
34
# File 'lib/stub_requests/core_ext/string/to_route_param.rb', line 30

def to_route_param
  each_with_object({}) do |(key, value), memo|
    memo[key.to_route_param] = value
  end
end