Class: AxR::Scanner::Warning

Inherits:
Object
  • Object
show all
Defined in:
lib/axr/scanner/warning.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, loc:, loc_num:) ⇒ Warning

Returns a new instance of Warning.



10
11
12
13
14
# File 'lib/axr/scanner/warning.rb', line 10

def initialize(message:, loc:, loc_num:)
  @message = message
  @loc     = loc
  @loc_num = loc_num
end

Instance Attribute Details

#locObject (readonly)

Returns the value of attribute loc.



8
9
10
# File 'lib/axr/scanner/warning.rb', line 8

def loc
  @loc
end

#loc_numObject (readonly)

Returns the value of attribute loc_num.



8
9
10
# File 'lib/axr/scanner/warning.rb', line 8

def loc_num
  @loc_num
end

#messageObject (readonly)

Returns the value of attribute message.



8
9
10
# File 'lib/axr/scanner/warning.rb', line 8

def message
  @message
end