Class: Rack::WebProfiler::Collectors::RackCollector

Inherits:
Object
  • Object
show all
Includes:
Rack::WebProfiler::Collector::DSL
Defined in:
lib/rack/web_profiler/collectors/rack_collector.rb

Class Method Summary collapse

Methods included from Rack::WebProfiler::Collector::DSL

included

Class Method Details

.hash_stringify_values(hash) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/rack/web_profiler/collectors/rack_collector.rb', line 21

def hash_stringify_values(hash)
  return {} unless hash.kind_of?(Hash)
  hash.collect do |k,v|
    v = v.inspect unless v.kind_of?(String)
    [k, v]
  end
end