Class: AxR::Scanner::Warning
- Inherits:
-
Object
- Object
- AxR::Scanner::Warning
- Defined in:
- lib/axr/scanner/warning.rb
Instance Attribute Summary collapse
-
#loc ⇒ Object
readonly
Returns the value of attribute loc.
-
#loc_num ⇒ Object
readonly
Returns the value of attribute loc_num.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message:, loc:, loc_num:) ⇒ Warning
constructor
A new instance of Warning.
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 = @loc = loc @loc_num = loc_num end |
Instance Attribute Details
#loc ⇒ Object (readonly)
Returns the value of attribute loc.
8 9 10 |
# File 'lib/axr/scanner/warning.rb', line 8 def loc @loc end |
#loc_num ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/axr/scanner/warning.rb', line 8 def @message end |