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 }
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
10 11 12 |
# File 'lib/profiling/configuration.rb', line 10 def config @config end |
Class Method Details
.extended(mod) ⇒ Object
12 13 14 |
# File 'lib/profiling/configuration.rb', line 12 def self.extended(mod) mod.config = DEFAULT_CONFIG end |
Instance Method Details
#configure(opts) ⇒ Object
16 17 18 |
# File 'lib/profiling/configuration.rb', line 16 def configure(opts) self.config = DEFAULT_CONFIG.merge(opts) end |