Module: Bootprint::InitializerProfiler::EnvironmentProbe
- Defined in:
- lib/bootprint/initializer_profiler.rb
Instance Method Summary collapse
Instance Method Details
#[](name) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/bootprint/initializer_profiler.rb', line 38 def [](name) present = key?(name) value = super Bootprint::InitializerProfiler.record_missing_environment(name) unless present value end |
#fetch(name, *arguments) ⇒ Object
45 46 47 48 |
# File 'lib/bootprint/initializer_profiler.rb', line 45 def fetch(name, *arguments, &) Bootprint::InitializerProfiler.record_missing_environment(name) unless key?(name) super end |