Class: BenchBloc::Formatter
- Inherits:
-
Object
- Object
- BenchBloc::Formatter
- Defined in:
- lib/bench_bloc/formatter/formatter.rb
Direct Known Subclasses
Defined Under Namespace
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(results, title) ⇒ Formatter
constructor
A new instance of Formatter.
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
#results ⇒ Object (readonly)
Returns the value of attribute results.
3 4 5 |
# File 'lib/bench_bloc/formatter/formatter.rb', line 3 def results @results end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/bench_bloc/formatter/formatter.rb', line 3 def title @title end |