Class: Spreadsheet::Note
- Inherits:
-
Object
- Object
- Spreadsheet::Note
- Includes:
- Encodings
- Defined in:
- lib/spreadsheet/note.rb
Overview
The Note class is a Subclass of String and represents a comment/note/annotation someone made to a cell.
Interesting Attributes
- #author
-
The name of the author who wrote the note
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#col ⇒ Object
Returns the value of attribute col.
-
#length ⇒ Object
Returns the value of attribute length.
-
#objID ⇒ Object
Returns the value of attribute objID.
-
#row ⇒ Object
Returns the value of attribute row.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize ⇒ Note
constructor
A new instance of Note.
Constructor Details
#initialize ⇒ Note
Returns a new instance of Note.
14 15 16 17 18 19 20 21 |
# File 'lib/spreadsheet/note.rb', line 14 def initialize @author = nil @length = 0 @objID = nil @row = -1 @col = -1 @text = "" end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
13 14 15 |
# File 'lib/spreadsheet/note.rb', line 13 def @author end |
#col ⇒ Object
Returns the value of attribute col.
13 14 15 |
# File 'lib/spreadsheet/note.rb', line 13 def col @col end |
#length ⇒ Object
Returns the value of attribute length.
13 14 15 |
# File 'lib/spreadsheet/note.rb', line 13 def length @length end |
#objID ⇒ Object
Returns the value of attribute objID.
13 14 15 |
# File 'lib/spreadsheet/note.rb', line 13 def objID @objID end |
#row ⇒ Object
Returns the value of attribute row.
13 14 15 |
# File 'lib/spreadsheet/note.rb', line 13 def row @row end |
#text ⇒ Object
Returns the value of attribute text.
13 14 15 |
# File 'lib/spreadsheet/note.rb', line 13 def text @text end |