Module: Benchmarkable::ClassMethods
- Defined in:
- lib/benchmarkable.rb
Instance Method Summary collapse
Instance Method Details
#benchmark(*methods_with_description) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/benchmarkable.rb', line 27 def benchmark(*methods_with_description) methods_with_description.each do |method_with_description| if method_with_description.kind_of?(Hash) method_with_description.each_pair {|method_name, description| decorate_for_benchmarking(method_name, description) } else decorate_for_benchmarking(method_with_description, method_with_description) end end end |