Class: ObjectInspector::DefaultFormatter

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

Instance Method Summary collapse

Methods inherited from BaseFormatter

#flags, #identification, #info, #initialize, #name

Constructor Details

This class inherits a constructor from ObjectInspector::BaseFormatter

Instance Attribute Details

#inspectorObjectInspector::Inspector

Returns the current value of 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

#callString

Perform the formatting routine.

Returns:



11
12
13
# File 'lib/object_inspector/default_formatter.rb', line 11

def call
  "<#{combine_strings}>"
end