Method: Garcon::Secret::Configuration#initialize
- Defined in:
- lib/garcon/secret.rb
#initialize(options = {}) {|_self| ... } ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialized a configuration instance
69 70 71 72 73 74 75 76 |
# File 'lib/garcon/secret.rb', line 69 def initialize( = {}) @lock = Monitor.new @stash = MemStash.new @queue = MutexPriorityQueue.new @queue << Secret.tmpfile until @queue.length >= 4 yield self if block_given? end |