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.
124
125
126
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 124
def worksheet
@worksheet
end
|
Instance Method Details
#[](ind) ⇒ Object
134
135
136
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 134
def [](ind)
cells[ind]
end
|
#before_write_xml ⇒ Object
126
127
128
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 126
def before_write_xml
!(cells.nil? || cells.empty?)
end
|
#delete_cell_shift_left(col_index) ⇒ Object
147
148
149
150
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 147
def delete_cell_shift_left(col_index)
cells.delete_at(col_index)
update_cell_coords(col_index)
end
|
#get_fill_color ⇒ Object
164
165
166
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 164
def get_fill_color
@worksheet.workbook.get_fill_color(xf)
end
|
#get_font ⇒ Object
168
169
170
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 168
def get_font
@worksheet.workbook.fonts[xf.font_id]
end
|
#index_in_collection ⇒ Object
130
131
132
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 130
def index_in_collection
r - 1
end
|
#insert_cell_shift_right(c, col_index) ⇒ Object
142
143
144
145
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 142
def insert_cell_shift_right(c, col_index)
cells.insert(col_index, c)
update_cell_coords(col_index)
end
|
#size ⇒ Object
138
139
140
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 138
def size
cells.size
end
|
#xf ⇒ Object
160
161
162
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 160
def xf
@worksheet.workbook.cell_xfs[self.style_index || 0]
end
|