class Rack::WebProfiler::Config
Constants
- DEFAULT_COLLECTORS
Attributes
collectors[RW]
tmp_dir[RW]
Public Class Methods
new()
click to toggle source
Initialize Config
.
# File lib/rack/web_profiler/config.rb, line 17 def initialize @collectors = Rack::WebProfiler::Collectors.new load_defaults! end
Public Instance Methods
build!()
click to toggle source
Setup the configuration
# File lib/rack/web_profiler/config.rb, line 24 def build! unless block_given? # @todo raise an Exception if no block given end instance_eval(&Proc.new) end
Private Instance Methods
load_defaults!()
click to toggle source
# File lib/rack/web_profiler/config.rb, line 40 def load_defaults! # Add default collectors DEFAULT_COLLECTORS.each do |collector_class| @collectors.add_collector(collector_class) end @tmp_dir = Dir.tmpdir end