Class: ObjectInspector::CombiningFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- ObjectInspector::CombiningFormatter
- Defined in:
- lib/object_inspector/formatters/combining_formatter.rb
Overview
ObjectInspector::CombiningFormatter implements BaseFormatter to return the standard/default inspect output format by combining Strings.
Constant Summary
Constants inherited from BaseFormatter
BaseFormatter::RIGHT_ARROW_ICON
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, #wrapped_object_inspection
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/formatters/combining_formatter.rb', line 7 def inspector @inspector end |
Instance Method Details
#call ⇒ String
Perform the formatting routine.
11 12 13 14 15 16 17 |
# File 'lib/object_inspector/formatters/combining_formatter.rb', line 11 def call if wrapped_object_inspection build_wrapped_object_string else build_string end end |