Sha256: edfe915dc9c94844caa1448375c05fce6723dbc185324d6fe04d4f0ff7352e10
Contents?: true
Size: 278 Bytes
Versions: 3
Compression:
Stored size: 278 Bytes
Contents
# frozen_string_literal: true module HTTPX module Loggable def log(level = @options.debug_level, label = "", &msg) return unless @options.debug return unless @options.debug_level >= level @options.debug << (+label << msg.call << "\n") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
httpx-0.0.3 | lib/httpx/loggable.rb |
httpx-0.0.2 | lib/httpx/loggable.rb |
httpx-0.0.1 | lib/httpx/loggable.rb |