Module: ActiveSupport::Testing::Performance::Metrics

Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/testing/performance.rb

Defined Under Namespace

Classes: Base, CpuTime, GcRuns, GcTime, Memory, Objects, ProcessTime, Time, WallTime

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



221
222
223
224
225
# File 'lib/gems/activesupport-2.2.2/lib/active_support/testing/performance.rb', line 221

def self.[](name)
  const_get(name.to_s.camelize)
rescue NameError
  nil
end