Class: ObjectInspector::CombiningFormatter

Inherits:
BaseFormatter show all
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

#inspector

Instance Method Summary collapse

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

#callString

Perform the formatting routine.

Returns:

  • (String)


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