Class: Sheetah::Sheet::Cell
- Inherits:
-
Object
- Object
- Sheetah::Sheet::Cell
- Defined in:
- lib/sheetah/sheet.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
readonly
Returns the value of attribute col.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(row:, col:, value:) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(row:, col:, value:) ⇒ Cell
Returns a new instance of Cell.
82 83 84 85 86 |
# File 'lib/sheetah/sheet.rb', line 82 def initialize(row:, col:, value:) @row = row @col = col @value = value end |
Instance Attribute Details
#col ⇒ Object (readonly)
Returns the value of attribute col.
88 89 90 |
# File 'lib/sheetah/sheet.rb', line 88 def col @col end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
88 89 90 |
# File 'lib/sheetah/sheet.rb', line 88 def row @row end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
88 89 90 |
# File 'lib/sheetah/sheet.rb', line 88 def value @value end |
Instance Method Details
#==(other) ⇒ Object
90 91 92 |
# File 'lib/sheetah/sheet.rb', line 90 def ==(other) other.is_a?(self.class) && row == other.row && col == other.col && value == other.value end |