module Busted::Profiler
Public Instance Methods
run(options, &block)
click to toggle source
# File lib/busted/profiler.rb, line 13 def run(options, &block) klass(options.fetch :profiler, :default).run(options, &block) end
Private Instance Methods
klass(profiler)
click to toggle source
# File lib/busted/profiler.rb, line 19 def klass(profiler) Profiler.const_get profiler.capitalize rescue NameError fail ArgumentError, "profiler `#{profiler}' does not exist" end