Skip to content

Commit

Permalink
Options getter for adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobeat committed May 14, 2013
1 parent d14a570 commit d7eb630
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adapters/adapter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d7eb630

Please sign in to comment.