Class: Ruby::Ods::Manager::Row

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/ruby/ods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#noObject (readonly)

Returns the value of attribute no.



147
148
149
# File 'lib/ruby/ods.rb', line 147

def no
  @no
end

Instance Method Details

#colsObject



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_cellObject



165
166
167
# File 'lib/ruby/ods.rb', line 165

def create_cell

end