Flowdock
method

cache_or_call_cached

Importance_0
cache_or_call_cached(key, actual=nil, &block) private

No documentation

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

Hide source
# File lib/spec/matchers/matcher.rb, line 39
      def cache_or_call_cached(key, actual=nil, &block)
        block ? @messages[key] = block :
                actual.nil? ? @messages[key].call :
                              @messages[key].call(actual)
      end
Register or log in to add new notes.