Class: Proc

Inherits:
Object
  • Object
show all
Defined in:
lib/at_what_cost.rb

Instance Method Summary collapse

Instance Method Details

#at_what_cost?Boolean

Returns:

  • (Boolean)


10
11
12
13
14
# File 'lib/at_what_cost.rb', line 10

def at_what_cost?
  Benchmark.bm do |x|
    x.report(&self)
  end
end