Class: Lintrunner::Message
- Inherits:
-
Object
- Object
- Lintrunner::Message
- Defined in:
- lib/lintrunner/message.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#line ⇒ Object
Returns the value of attribute line.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(filename:, line:, name:, description:) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(filename:, line:, name:, description:) ⇒ Message
Returns a new instance of Message.
6 7 8 9 10 11 |
# File 'lib/lintrunner/message.rb', line 6 def initialize(filename:, line:, name:, description:) self.filename = filename self.line = line self.name = name self.description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/lintrunner/message.rb', line 4 def description @description end |
#filename ⇒ Object
Returns the value of attribute filename.
4 5 6 |
# File 'lib/lintrunner/message.rb', line 4 def filename @filename end |
#line ⇒ Object
Returns the value of attribute line.
4 5 6 |
# File 'lib/lintrunner/message.rb', line 4 def line @line end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/lintrunner/message.rb', line 4 def name @name end |