Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Allow a nil constructor for Driver records
Browse files Browse the repository at this point in the history
  • Loading branch information
semperos committed Feb 29, 2012
1 parent e521025 commit 028a96f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/clj_webdriver/driver.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
(:args cache-spec)))))))

(defn init-driver
"Constructor for Driver records.
"Constructor for Driver records. Accepts a `driver-spec` map with the following keys:
webdriver - WebDriver instance
cache-spec - map with keys :strategy, :args, :include and :exclude"
cache-spec - map with keys :strategy, :args, :include and :exclude, used to setup caching rules"
([] (Driver. nil nil nil))
([driver-spec]
(let [{:keys [webdriver cache-spec]} driver-spec]
(Driver. webdriver
Expand Down

0 comments on commit 028a96f

Please sign in to comment.