short_inspect

Prevent #inspect to include unlimited nested instance variables.

Usage:

require 'short_inspect'
ShortInspect.apply_to(ActionDispatch::Routing::RouteSet)

# or:
ShortInspect.apply_minimal_to(ActionDispatch::Routing::RouteSet)

The normal version will include instance variables on the top level with a simple value.

The minimal version will only include the class name and object id.

For auto inclusion in common rails classes:

require 'short_inspect/rails'

It's ~450% slower than the built-in #inspect method.