Class: Comment
- Inherits:
-
Object
- Object
- Comment
- Defined in:
- lib/comment.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(file:, line:, text:) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(file:, line:, text:) ⇒ Comment
Returns a new instance of Comment.
4 5 6 7 8 |
# File 'lib/comment.rb', line 4 def initialize(file:, line:, text:) self.file = file self.line = line self.text = text end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
2 3 4 |
# File 'lib/comment.rb', line 2 def file @file end |
#line ⇒ Object
Returns the value of attribute line.
2 3 4 |
# File 'lib/comment.rb', line 2 def line @line end |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'lib/comment.rb', line 2 def text @text end |