class Pry::Command::Cat::AbstractFormatter

def between_lines

def between_lines
  [opts[:start] || 1, opts[:end] || -1]
end

def code_type

def code_type
  opts[:type] || :ruby
end

def decorate(content)

def decorate(content)
  content.code_type = code_type
  content.between(*between_lines)
    .with_line_numbers(use_line_numbers?).highlighted
end

def use_line_numbers?

def use_line_numbers?
  opts.present?(:'line-numbers') || opts.present?(:ex)
end