mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
29 lines
907 B
Ruby
29 lines
907 B
Ruby
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
|
|
},
|
|
|
|
"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
|
|
},
|
|
|
|
"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
|
|
}
|
|
}.freeze
|
|
end
|
|
end
|