Class AwesomePrint::Formatters::BaseFormatter
In: lib/awesome_print/formatters/base_formatter.rb
Parent: Object

Methods

Included Modules

Colorize

Constants

DEFAULT_LIMIT_SIZE = 7

Public Instance methods

Indentation related methods

To support limited output, for example:

ap (‘a’..’z’).to_a, :limit => 3 [

    [ 0] "a",
    [ 1] .. [24],
    [25] "z"

]

ap (1..100).to_a, :limit => true # Default limit is 7. [

    [ 0] 1,
    [ 1] 2,
    [ 2] 3,
    [ 3] .. [96],
    [97] 98,
    [98] 99,
    [99] 100

]

[Validate]