Class: RubyXL::Row
Overview
Constant Summary
collapse
- DEFAULT_HEIGHT =
13
Instance Attribute Summary collapse
#local_namespaces
Instance Method Summary
collapse
#==, included, #initialize, #write_xml
Instance Attribute Details
#worksheet ⇒ Object
Returns the value of attribute worksheet.
155
156
157
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 155
def worksheet
@worksheet
end
|
Instance Method Details
#[](ind) ⇒ Object
165
166
167
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 165
def [](ind)
cells[ind]
end
|
#before_write_xml ⇒ Object
157
158
159
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 157
def before_write_xml
!(cells.nil? || cells.empty?)
end
|
#delete_cell_shift_left(col_index) ⇒ Object
178
179
180
181
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 178
def delete_cell_shift_left(col_index)
cells.delete_at(col_index)
update_cell_coords(col_index)
end
|
#get_fill_color ⇒ Object
195
196
197
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 195
def get_fill_color
@worksheet.workbook.get_fill_color(xf)
end
|
#get_font ⇒ Object
199
200
201
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 199
def get_font
@worksheet.workbook.fonts[xf.font_id]
end
|
#index_in_collection ⇒ Object
161
162
163
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 161
def index_in_collection
r - 1
end
|
#insert_cell_shift_right(c, col_index) ⇒ Object
173
174
175
176
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 173
def insert_cell_shift_right(c, col_index)
cells.insert(col_index, c)
update_cell_coords(col_index)
end
|
#size ⇒ Object
169
170
171
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 169
def size
cells.size
end
|
#xf ⇒ Object
191
192
193
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 191
def xf
@worksheet.workbook.cell_xfs[self.style_index || 0]
end
|