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



313
314
315
316
# File 'lib/rubyexcel/section.rb', line 313

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

Instance Attribute Details

#idxObject (readonly) Also known as: index

The Column letter



300
301
302
# File 'lib/rubyexcel/section.rb', line 300

def idx
  @idx
end

#lengthObject (readonly)

The number of Rows in the Column



300
301
302
# File 'lib/rubyexcel/section.rb', line 300

def length
  @length
end