Class: Ods::Row

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#noObject (readonly)

Returns the value of attribute no.



143
144
145
# File 'lib/ods.rb', line 143

def no
  @no
end

Instance Method Details

#colsObject



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_cellObject



161
162
163
# File 'lib/ods.rb', line 161

def create_cell

end