Class: Coopy::SimpleCell
- Inherits:
-
Object
- Object
- Coopy::SimpleCell
- Defined in:
- lib/coopy/simple_cell.rb
Instance Attribute Summary collapse
-
#datum ⇒ Object
Returns the value of attribute datum.
Instance Method Summary collapse
-
#initialize(datum = nil) ⇒ SimpleCell
constructor
A new instance of SimpleCell.
- #to_s ⇒ Object
Constructor Details
#initialize(datum = nil) ⇒ SimpleCell
Returns a new instance of SimpleCell.
6 7 8 |
# File 'lib/coopy/simple_cell.rb', line 6 def initialize(datum = nil) @datum = datum end |
Instance Attribute Details
#datum ⇒ Object
Returns the value of attribute datum.
4 5 6 |
# File 'lib/coopy/simple_cell.rb', line 4 def datum @datum end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/coopy/simple_cell.rb', line 10 def to_s @datum.to_s end |