diff options
Diffstat (limited to 'lib/rack/lock.rb')
-rw-r--r-- | lib/rack/lock.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rack/lock.rb b/lib/rack/lock.rb index bfc86dd8..b5326a4f 100644 --- a/lib/rack/lock.rb +++ b/lib/rack/lock.rb @@ -12,6 +12,14 @@ module Rack ensure mutex.unlock end + + def to_path + target.to_path + end + + def respond_to?(sym) + sym.to_sym == :close || target.respond_to?(sym) + end end FLAG = 'rack.multithread'.freeze |