class Object

Public Instance Methods

includify(object) click to toggle source
# File lib/tapi/serverspec/matcher/include_nested.rb, line 4
def includify(object)
  return object unless object.is_a?(Hash)

  hash = object
  hash.each do |key, value|
    hash[key] = includify(value)
  end

  RSpec::Matchers::BuiltIn::Include.new(hash)
end