File: note.rb

package info (click to toggle)
ruby-spreadsheet 1.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,980 kB
  • sloc: ruby: 6,939; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 504 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "spreadsheet/encodings"

module Spreadsheet
  ##
  # 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
  class Note
    include Encodings
    attr_accessor :author, :length, :obj_id, :row, :col, :text
    def initialize
      @author = nil
      @length = 0
      @obj_id = nil
      @row = -1
      @col = -1
      @text = ""
    end
  end
end