Class: FaceControl::Comment
- Inherits:
-
Object
- Object
- FaceControl::Comment
- Defined in:
- lib/face_control/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(options) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(options) ⇒ Comment
5 6 7 8 9 |
# File 'lib/face_control/comment.rb', line 5 def initialize() self.file = .fetch(:file) self.line = .fetch(:line) self.text = .fetch(:text) end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
3 4 5 |
# File 'lib/face_control/comment.rb', line 3 def file @file end |
#line ⇒ Object
Returns the value of attribute line.
3 4 5 |
# File 'lib/face_control/comment.rb', line 3 def line @line end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/face_control/comment.rb', line 3 def text @text end |