Method: Counter::Cache::OptionsParser#wait

Defined in:
lib/counter/cache/options_parser.rb

#wait(source_object) ⇒ Object



56
57
58
59
60
61
62
63
# File 'lib/counter/cache/options_parser.rb', line 56

def wait(source_object)
  wait = options[:wait]
  if wait.respond_to?(:call)
    wait.call(source_object)
  else
    wait
  end
end