class Pry::Code

def initialize(lines = [], start_line = 1, code_type = :ruby)

Parameters:
  • code_type (Symbol?) --
  • start_line (Integer?) --
  • lines (Array, String, IO) --
def initialize(lines = [], start_line = 1, code_type = :ruby)
  lines = lines.lines if lines.is_a? String
  @lines = lines.each_with_index.map do |line, lineno|
    LOC.new(line, lineno + start_line.to_i)
  end
  @code_type = code_type
  @with_marker = @with_indentation = @with_line_numbers = nil
end