Class: Ruby::Ods::Manager::Row
- Inherits:
-
Object
- Object
- Ruby::Ods::Manager::Row
- Extended by:
- Forwardable
- Defined in:
- lib/ruby/ods.rb
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.
149 150 151 152 |
# File 'lib/ruby/ods.rb', line 149 def initialize(content, no) @content = content @no = no end |
Instance Attribute Details
#no ⇒ Object (readonly)
Returns the value of attribute no.
147 148 149 |
# File 'lib/ruby/ods.rb', line 147 def no @no end |
Instance Method Details
#cols ⇒ Object
154 155 156 157 158 159 160 161 162 163 |
# File 'lib/ruby/ods.rb', line 154 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
165 166 167 |
# File 'lib/ruby/ods.rb', line 165 def create_cell end |