class ExcelXml::Fields
Public Class Methods
new(parser, raw_fields)
click to toggle source
Calls superclass method
# File lib/excelxml/worksheet.rb, line 76 def initialize parser, raw_fields super(raw_fields) @parser = parser end
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/excelxml/worksheet.rb, line 83 def [] key if idx = @parser.instance_eval { index_to_header_map.find_index {|e| e.match key } } self[idx] = super(idx) || Field.new end end
has_header?(header)
click to toggle source
# File lib/excelxml/worksheet.rb, line 80 def has_header? header @parser.has_header? header end