class Rookout::Augs::Locations::LocationFileLine

Constants

NAME

Attributes

file_hash[R]
filename[R]
line_crc[R]
line_unique[R]
lineno[R]

Public Class Methods

new(arguments, output, aug) click to toggle source
Calls superclass method Rookout::Augs::Locations::Location::new
# File lib/rookout/augs/locations/location_file_line.rb, line 13
def initialize arguments, output, aug
  super output, aug
  @filename = arguments["filename"]
  @lineno = arguments["lineno"]

  # NOTE: Hashes are only used for suggestions, not for verification
  @file_hash = arguments["sha256"]
  @line_crc = arguments["line_crc32_2"]
  @line_unique = arguments["line_unique"] || false
end

Public Instance Methods

add_aug(trigger_services) click to toggle source
# File lib/rookout/augs/locations/location_file_line.rb, line 26
def add_aug trigger_services
  trigger_services.get_service("position").add_aug self
rescue SystemExit
  raise
rescue Exception => e
  message = "Exception when adding aug"
  Logger.instance.error message, e
  notify_error Processor::RookError.new e, message
end