method
extract_option
1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::Mock
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
extract_option(source, target, key, default=nil)
private
Hide source
# File lib/spec/mocks/mock.rb, line 56 def extract_option(source, target, key, default=nil) if source[key] target[key] = source.delete(key) elsif default target[key] = default end end