2019-02-27 02:22:32 +02:00
|
|
|
class Pry
|
|
|
|
class Inspector
|
|
|
|
MAP = {
|
|
|
|
"default" => {
|
|
|
|
value: Pry::DEFAULT_PRINT,
|
|
|
|
description: <<-DESCRIPTION.each_line.map(&:lstrip!)
|
|
|
|
The default Pry inspector. It has paging and color support, and uses
|
|
|
|
pretty_inspect when printing an object.
|
|
|
|
DESCRIPTION
|
|
|
|
},
|
2014-03-19 17:13:20 +01:00
|
|
|
|
2019-02-27 02:22:32 +02:00
|
|
|
"simple" => {
|
|
|
|
value: Pry::SIMPLE_PRINT,
|
|
|
|
description: <<-DESCRIPTION.each_line.map(&:lstrip)
|
|
|
|
A simple inspector that uses #puts and #inspect when printing an
|
|
|
|
object. It has no pager, color, or pretty_inspect support.
|
|
|
|
DESCRIPTION
|
|
|
|
},
|
2014-03-19 17:13:20 +01:00
|
|
|
|
2019-02-27 02:22:32 +02:00
|
|
|
"clipped" => {
|
|
|
|
value: Pry::CLIPPED_PRINT,
|
|
|
|
description: <<-DESCRIPTION.each_line.map(&:lstrip)
|
|
|
|
The clipped inspector has the same features as the 'simple' inspector
|
|
|
|
but prints large objects as a smaller string.
|
|
|
|
DESCRIPTION
|
|
|
|
}
|
2019-03-02 11:59:33 +02:00
|
|
|
}.freeze
|
2019-02-27 02:22:32 +02:00
|
|
|
end
|
2014-03-19 17:13:20 +01:00
|
|
|
end
|