method
extract_option
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