Class: Tablecon::Row
- Inherits:
-
Object
- Object
- Tablecon::Row
- Defined in:
- lib/tablecon.rb
Instance Method Summary collapse
- #<<(cell) ⇒ Object
- #each ⇒ Object
-
#initialize ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize ⇒ Row
Returns a new instance of Row.
143 144 145 |
# File 'lib/tablecon.rb', line 143 def initialize @cells = [] end |
Instance Method Details
#<<(cell) ⇒ Object
146 147 148 |
# File 'lib/tablecon.rb', line 146 def << cell @cells << cell end |
#each ⇒ Object
149 150 151 |
# File 'lib/tablecon.rb', line 149 def each @cells.each { |cell| yield cell } end |