Class: RubyExcel::Column

Inherits:
Section show all
Defined in:
lib/rubyexcel/section.rb

Overview

A Column in the Sheet

Instance Attribute Summary collapse

Attributes inherited from Section

#data, #sheet

Instance Method Summary collapse

Methods inherited from Section

#<<, #cell, #delete, #each, #each_cell, #each_cell_without_headers, #each_without_headers, #empty?, #find, #inspect, #last_cell, #map!, #map_without_headers!, #read, #summarise, #to_s, #write

Methods included from Address

#address_to_col_index, #address_to_indices, #col_index, #col_letter, #column_id, #expand, #indices_to_address, #multi_array?, #offset, #row_id, #to_range_address

Constructor Details

#initialize(sheet, idx) ⇒ Column

Creates a RubyExcel::Column instance

Parameters:

  • sheet (RubyExcel::Sheet)

    the Sheet which holds this Column

  • idx (String, Fixnum)

    the index of this Column



305
306
307
308
# File 'lib/rubyexcel/section.rb', line 305

def initialize( sheet, idx )
  @idx = idx
  super( sheet )
end

Instance Attribute Details

#idxString (readonly)

the Column index

Returns:

  • (String)

    the current value of idx



294
295
296
# File 'lib/rubyexcel/section.rb', line 294

def idx
  @idx
end

#lengthFixnum (readonly)

the Column length

Returns:

  • (Fixnum)

    the current value of length



294
295
296
# File 'lib/rubyexcel/section.rb', line 294

def length
  @length
end