Module: Profiler::Configuration

Included in:
Profiler
Defined in:
lib/profiling/configuration.rb

Constant Summary collapse

DEFAULT_CONFIG =
{
  dir: 'profiling',
  exclude_gems: false,
  exclude_standard_lib: false
}.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



11
12
13
# File 'lib/profiling/configuration.rb', line 11

def config
  @config
end

Class Method Details

.extended(mod) ⇒ Object



13
14
15
# File 'lib/profiling/configuration.rb', line 13

def self.extended(mod)
  mod.config = DEFAULT_CONFIG
end

Instance Method Details

#configure(opts) ⇒ Object



17
18
19
# File 'lib/profiling/configuration.rb', line 17

def configure(opts)
  self.config = DEFAULT_CONFIG.merge(opts)
end