Class: ObjectInspector::CombiningFormatter

Inherits:
BaseFormatter
  • Object
show all
Defined in:
lib/object_inspector/formatters/combining_formatter.rb

Overview

Specializes on BaseFormatter to build inspect output by combining Strings (as opposed to TemplatingFormatter).

Instance Method Summary collapse

Instance Method Details

#callString

Perform the formatting routine.

Returns:

  • (String)


11
12
13
14
15
16
17
# File 'lib/object_inspector/formatters/combining_formatter.rb', line 11

def call
  if wrapped_object_inspection_result
    build_wrapped_object_string
  else
    build_string
  end
end