Sha256: 5bb29a2952b088eb6c7f6f4442f0542c3e6bf354fd4bd3e69328ed748b1d8351

Contents?: true

Size: 793 Bytes

Versions: 21

Compression:

Stored size: 793 Bytes

Contents

class Puppeteer::ConsoleMessage
  class Location
    def initialize(url:, line_number:, column_number: nil)
      @url = url
      @line_number = line_number
      @column_number = column_number
    end

    attr_reader :url, :line_number, :column_number
  end

  # @param log_type [String]
  # @param text [String]
  # @param args [Array<Puppeteer::JSHandle>]
  # @param stack_trace_locations [Array<Location>]
  def initialize(log_type, text, args, stack_trace_locations)
    @log_type = log_type
    @text = text
    @args = args
    @stack_trace_locations = stack_trace_locations
  end

  attr_reader :log_type, :text, :args

  # @return [Location]
  def location
    @stack_trace_locations.first
  end

  # @return [Array<Location>]
  def stack_trace
    @stack_trace_locations
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
puppeteer-ruby-0.45.6 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.5 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.4 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.3 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.2 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.2.alpha2 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.2.alpha1 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.1 lib/puppeteer/console_message.rb
puppeteer-ruby-0.45.0 lib/puppeteer/console_message.rb
puppeteer-ruby-0.44.3 lib/puppeteer/console_message.rb
puppeteer-ruby-0.44.2 lib/puppeteer/console_message.rb
puppeteer-ruby-0.44.1 lib/puppeteer/console_message.rb
puppeteer-ruby-0.44.0 lib/puppeteer/console_message.rb
puppeteer-ruby-0.43.1 lib/puppeteer/console_message.rb
puppeteer-ruby-0.43.0 lib/puppeteer/console_message.rb
puppeteer-ruby-0.42.0 lib/puppeteer/console_message.rb
puppeteer-ruby-0.41.0 lib/puppeteer/console_message.rb
puppeteer-ruby-0.40.7 lib/puppeteer/console_message.rb
puppeteer-ruby-0.40.6 lib/puppeteer/console_message.rb
puppeteer-ruby-0.40.5 lib/puppeteer/console_message.rb