Sha256: 6344ce8554afe51c3e4c0c5f93bc26d0e62be27e19586cd415680487dbbac494

Contents?: true

Size: 235 Bytes

Versions: 11

Compression:

Stored size: 235 Bytes

Contents

module Luffa
  module Debug
    def self.with_debugging(&block)
      original_value = ENV['DEBUG']
      ENV['DEBUG'] = '1'
      begin
        block.call
      ensure
        ENV['DEBUG'] = original_value
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
luffa-2.1.0 lib/luffa/with_debugging.rb
luffa-2.0.0 lib/luffa/with_debugging.rb
luffa-1.1.0 lib/luffa/with_debugging.rb
luffa-1.0.7 lib/luffa/with_debugging.rb
luffa-1.0.6 lib/luffa/with_debugging.rb
luffa-1.0.5 lib/luffa/with_debugging.rb
luffa-1.0.4 lib/luffa/with_debugging.rb
luffa-1.0.3 lib/luffa/with_debugging.rb
luffa-1.0.2 lib/luffa/with_debugging.rb
luffa-1.0.1 lib/luffa/with_debugging.rb
luffa-1.0.0 lib/luffa/with_debugging.rb