method

extract_option

Importance_0
1.3.1 - Show latest stable - 0 notes - Class: Spec::Mocks::Mock
extract_option(source, target, key, default=nil) private

No documentation

This method has no description. You can help the RSpec community by adding new notes.

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
Register or log in to add new notes.