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
-
#inspect(object = self, **kargs) ⇒ String
Calls ObjectInspector::Inspector.inspect on the passed in ‘object`, passing it the passed in `kargs` (keyword arguments).
Instance Method Details
#inspect(object = self, **kargs) ⇒ String
Calls ObjectInspector::Inspector.inspect on the passed in ‘object`, passing it the passed in `kargs` (keyword arguments).
12 13 14 |
# File 'lib/object_inspector/inspectors_helper.rb', line 12 def inspect(object = self, **kargs) Inspector.inspect(object, **kargs) end |