Class: RubyXL::Row
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from OOXMLObject
#add_to_zip, #before_write_xml, define_attribute, define_child_node, define_element_name, #dup, filepath, #initialize, obtain_class_variable, parse, parse_file, set_countable, set_namespaces, #write_xml
Instance Attribute Details
#worksheet ⇒ Object
Returns the value of attribute worksheet.
89
90
91
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 89
def worksheet
@worksheet
end
|
Instance Method Details
#[](ind) ⇒ Object
95
96
97
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 95
def [](ind)
cells[ind]
end
|
#delete_cell_shift_left(col_index) ⇒ Object
112
113
114
115
116
117
118
119
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 112
def delete_cell_shift_left(col_index)
cells.delete_at(col_index)
col_index.upto(cells.size) { |col|
cell = cells[col]
next if cell.nil?
cell.column = col
}
end
|
#get_fill_color ⇒ Object
125
126
127
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 125
def get_fill_color
@worksheet.workbook.get_fill_color(xf)
end
|
#get_font ⇒ Object
129
130
131
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 129
def get_font
@worksheet.workbook.fonts[xf.font_id]
end
|
#index_in_collection ⇒ Object
91
92
93
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 91
def index_in_collection
r - 1
end
|
#insert_cell_shift_right(c, col_index) ⇒ Object
103
104
105
106
107
108
109
110
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 103
def insert_cell_shift_right(c, col_index)
cells.insert(col_index, c)
col_index.upto(cells.size) { |col|
cell = cells[col]
next if cell.nil?
cell.column = col
}
end
|
#size ⇒ Object
99
100
101
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 99
def size
cells.size
end
|
#xf ⇒ Object
121
122
123
|
# File 'lib/rubyXL/objects/sheet_data.rb', line 121
def xf
@worksheet.workbook.cell_xfs[self.s || 0]
end
|