class Pry::Command::Ls::Formatter

def color(type, str)

def color(type, str)
  Pry::Helpers::Text.send pry_instance.config.ls.send("#{type}_color"), str
end

def correct_opts?

def correct_opts?
  @default_switch
end

def format_value(value)

def format_value(value)
  Pry::ColorPrinter.pp(value, ''.dup)
end

def grep

def grep
  @grep || proc { |x| x }
end

def initialize(pry_instance)

def initialize(pry_instance)
  @pry_instance = pry_instance
  @target = pry_instance.current_context
  @default_switch = nil
end

def output_section(heading, body)

Outputs nothing if the section would be empty.
Add a new section to the output.
def output_section(heading, body)
  return '' if body.compact.empty?
  fancy_heading = Pry::Helpers::Text.bold(color(:heading, heading))
  Pry::Helpers.tablify_or_one_line(fancy_heading, body, @pry_instance)
end

def output_self

def output_self
  raise NotImplementedError
end

def write_out

def write_out
  return false unless correct_opts?
  output_self
end