Class: ObjectInspector::DefaultFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- ObjectInspector::DefaultFormatter
- Defined in:
- lib/object_inspector/default_formatter.rb
Overview
ObjectInspector::DefaultFormatter implements BaseFormatter to return a standard/default inspect output format.
Instance Attribute Summary collapse
-
#inspector ⇒ ObjectInspector::Inspector
The current value of inspector.
Instance Method Summary collapse
-
#call ⇒ String
Perform the formatting routine.
Methods inherited from BaseFormatter
#flags, #identification, #info, #initialize, #name
Constructor Details
This class inherits a constructor from ObjectInspector::BaseFormatter
Instance Attribute Details
#inspector ⇒ ObjectInspector::Inspector
Returns the current value of inspector.
7 8 9 |
# File 'lib/object_inspector/default_formatter.rb', line 7 def inspector @inspector end |
Instance Method Details
#call ⇒ String
Perform the formatting routine.
11 12 13 |
# File 'lib/object_inspector/default_formatter.rb', line 11 def call "<#{combine_strings}>" end |