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.
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
-
#call ⇒ String
Perform the formatting routine.
Methods inherited from BaseFormatter
#flags, #identification, #info, #initialize, #issues, #name, #wrapped_object_inspection_result
Constructor Details
This class inherits a constructor from ObjectInspector::BaseFormatter
Instance Method Details
#call ⇒ String
Perform the formatting routine.
12 13 14 15 16 17 18 |
# File 'lib/object_inspector/formatters/combining_formatter.rb', line 12 def call if wrapped_object_inspection_result build_wrapped_object_string else build_string end end |