Class: RubyXL::Row
Overview
Instance Attribute Summary collapse
#local_namespaces
Instance Method Summary
collapse
#==, #before_write_xml, included, #initialize, #write_xml
Instance Attribute Details
#worksheet ⇒ Object
Returns the value of attribute worksheet.
121
122
123
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 121
def worksheet
@worksheet
end
|
Instance Method Details
#[](ind) ⇒ Object
127
128
129
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 127
def [](ind)
cells[ind]
end
|
#delete_cell_shift_left(col_index) ⇒ Object
140
141
142
143
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 140
def delete_cell_shift_left(col_index)
cells.delete_at(col_index)
update_cell_coords(col_index)
end
|
#get_fill_color ⇒ Object
157
158
159
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 157
def get_fill_color
@worksheet.workbook.get_fill_color(xf)
end
|
#get_font ⇒ Object
161
162
163
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 161
def get_font
@worksheet.workbook.fonts[xf.font_id]
end
|
#index_in_collection ⇒ Object
123
124
125
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 123
def index_in_collection
r - 1
end
|
#insert_cell_shift_right(c, col_index) ⇒ Object
135
136
137
138
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 135
def insert_cell_shift_right(c, col_index)
cells.insert(col_index, c)
update_cell_coords(col_index)
end
|
#size ⇒ Object
131
132
133
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 131
def size
cells.size
end
|
#xf ⇒ Object
153
154
155
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 153
def xf
@worksheet.workbook.cell_xfs[self.style_index || 0]
end
|