Method: Object::WithBenchmark::BenchmarkProxy#initialize

Defined in:
lib/vex/base/object/with_benchmark.rb

#initialize(host, *args) ⇒ BenchmarkProxy

Returns a new instance of BenchmarkProxy.



6
7
8
9
10
11
12
13
14
# File 'lib/vex/base/object/with_benchmark.rb', line 6

def initialize(host, *args)
  @host = host

  if args.length == 1 && args.first.is_a?(String)
    @out, @label = nil, args.first
  else 
    @out, @label = *args
  end
end