method
anythingize_lonely_keys
1.2.0 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::ArgumentMatchers
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
anythingize_lonely_keys(*args)
private
Hide source
# File lib/spec/mocks/argument_matchers.rb, line 226 def anythingize_lonely_keys(*args) hash = args.last.class == Hash ? args.delete_at(-1) : {} args.each { | arg | hash[arg] = anything } hash end