Sha256: 1a979ed9c1e7b0a528b26f62f9d7a1035e0bc3a75e12886742ebbcf96d1dd660
Contents?: true
Size: 539 Bytes
Versions: 4
Compression:
Stored size: 539 Bytes
Contents
module Helium class Console define_formatter_for String do def call formatted = Helium::Console.format_string( object.dump.gsub('\n', "\n"), max_width: max_width, max_lines: max_lines, overflow: overflow, ellipses: "...\"" ) formatted.lines .map { |line| light_green(line) } .join end def max_lines case level when 1 then nil when 2 then 3 else 1 end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems