method
anythingize_lonely_keys

RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Mocks::ArgumentConstraints
- 1.1.4
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
anythingize_lonely_keys(*args)
private
Hide source
# 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