Class: BenchBloc::Formatter

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

Direct Known Subclasses

RubyProf, Formatter::Benchmark

Defined Under Namespace

Classes: Benchmark, RubyProf

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(results, title) ⇒ Formatter

Returns a new instance of Formatter.



4
5
6
# File 'lib/bench_bloc/formatter/formatter.rb', line 4

def initialize results, title
  @results, @title = results, title
end

Instance Attribute Details

#resultsObject (readonly)

Returns the value of attribute results.



3
4
5
# File 'lib/bench_bloc/formatter/formatter.rb', line 3

def results
  @results
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/bench_bloc/formatter/formatter.rb', line 3

def title
  @title
end