Class: Ods::Row
Instance Attribute Summary collapse
-
#no ⇒ Object
readonly
Returns the value of attribute no.
Instance Method Summary collapse
- #cols ⇒ Object
- #create_cell ⇒ Object
-
#initialize(content, no) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(content, no) ⇒ Row
Returns a new instance of Row.
145 146 147 148 |
# File 'lib/ods.rb', line 145 def initialize(content, no) @content = content @no = no end |
Instance Attribute Details
#no ⇒ Object (readonly)
Returns the value of attribute no.
143 144 145 |
# File 'lib/ods.rb', line 143 def no @no end |
Instance Method Details
#cols ⇒ Object
150 151 152 153 154 155 156 157 158 159 |
# File 'lib/ods.rb', line 150 def cols return @cols if @cols @cols = [] no = 'A' xpath('table:table-cell').each{|cell| @cols << Cell.new(cell, no) no.succ! } @cols end |
#create_cell ⇒ Object
161 162 163 |
# File 'lib/ods.rb', line 161 def create_cell end |