Class: Squash::Symbolicator::Line

Inherits:
Struct
  • Object
show all
Includes:
SerialBox
Defined in:
lib/squash/symbolicator/lines.rb,
lib/squash/symbolicator/lines.rb

Overview

An address ranged mapped to a specific line of code, as part of a Lines aggregation. No symbol data is included.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



17
18
19
# File 'lib/squash/symbolicator/lines.rb', line 17

def column
  @column
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



17
18
19
# File 'lib/squash/symbolicator/lines.rb', line 17

def file
  @file
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



17
18
19
# File 'lib/squash/symbolicator/lines.rb', line 17

def line
  @line
end

#start_addressObject

Returns the value of attribute start_address

Returns:

  • (Object)

    the current value of start_address



17
18
19
# File 'lib/squash/symbolicator/lines.rb', line 17

def start_address
  @start_address
end

Instance Method Details

#<=>(other) ⇒ Object

Raises:

  • (ArgumentError)


30
31
32
33
# File 'lib/squash/symbolicator/lines.rb', line 30

def <=>(other)
  raise ArgumentError unless other.kind_of?(Squash::Symbolicator::Line)
  start_address <=> other.start_address
end