Class: Profiler::AbstractPrinter
- Inherits:
-
Object
- Object
- Profiler::AbstractPrinter
- Defined in:
- lib/profiler/printers/abstract_printer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result) ⇒ AbstractPrinter
constructor
A new instance of AbstractPrinter.
- #print(options = {}) ⇒ Object
Constructor Details
#initialize(result) ⇒ AbstractPrinter
Returns a new instance of AbstractPrinter.
5 6 7 |
# File 'lib/profiler/printers/abstract_printer.rb', line 5 def initialize(result) self.result = result end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/profiler/printers/abstract_printer.rb', line 3 def result @result end |
Instance Method Details
#print(options = {}) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/profiler/printers/abstract_printer.rb', line 9 def print(={}) defaults = { output: STDOUT } = defaults.merge() print_result() end |