Module: ObjectInspector::InspectorsHelper

Defined in:
lib/object_inspector/inspectors_helper.rb

Overview

ObjectInspector::InspectorsHelper can be included into any object to simplify the process of instantiating an ObjectInspector::Inspector and generating the inspection output.

Instance Method Summary collapse

Instance Method Details

#inspect(object = self, **kwargs) ⇒ String

Calls ObjectInspector::Inspector.inspect on the passed in ‘object`, passing it the passed in `kwargs` (keyword arguments).

Returns:

  • (String)


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

def inspect(object = self, **kwargs)
  ObjectInspector::Inspector.inspect(object, **kwargs)
end