class Lookbook::Error

def source_code_lines

def source_code_lines
  if file_path || @source_code
    if @source_code
      @source_code.split("\n")
    else
      full_path = Rails.root.join(file_path)
      File.read(full_path).split("\n") if File.exist? full_path
    end
  end
end