Class: Notes::Note
- Inherits:
-
Struct
- Object
- Struct
- Notes::Note
- Defined in:
- lib/notes.rb
Overview
The Note class. This is basically an object with accessors to four attributes:
-
tag: Tag the line is marked with;
-
text: The line of text containing the tag;
-
line: The line number;
-
file: The filename of the input source.
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
15 16 17 |
# File 'lib/notes.rb', line 15 def file @file end |
#line ⇒ Object
Returns the value of attribute line
15 16 17 |
# File 'lib/notes.rb', line 15 def line @line end |
#tag ⇒ Object
Returns the value of attribute tag
15 16 17 |
# File 'lib/notes.rb', line 15 def tag @tag end |
#text ⇒ Object
Returns the value of attribute text
15 16 17 |
# File 'lib/notes.rb', line 15 def text @text end |