From d7eb6307c7f8823b236ee505f004d47df9bb3bb8 Mon Sep 17 00:00:00 2001 From: Ricardo Tomasi Date: Tue, 14 May 2013 04:04:34 -0300 Subject: [PATCH] Options getter for adapters --- adapters/adapter.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/adapters/adapter.coffee b/adapters/adapter.coffee index d4fab22..0574da7 100644 --- a/adapters/adapter.coffee +++ b/adapters/adapter.coffee @@ -15,4 +15,10 @@ class Adapter if not ext then @disabled = [] else @disabled = @disabled.filter (e) -> e isnt ext + +Adapter.getOptions = (self) -> + options = {} + options[key] = val for own key, val of self + return options + module.exports = Adapter \ No newline at end of file