method

anythingize_lonely_keys

rspec latest stable - Class: Spec::Mocks::ArgumentConstraints

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

anythingize_lonely_keys(*args)
private

No documentation available.

# File lib/spec/mocks/argument_constraints.rb, line 230
      def anythingize_lonely_keys(*args)
        hash = args.last.class == Hash ? args.delete_at(-1) : {}
        args.each { | arg | hash[arg] = anything }
        hash
      end