class MergeExcel::Sheets
Attributes
array[R]
Public Class Methods
new()
click to toggle source
# File lib/merge_excel/sheets.rb, line 4 def initialize @array = [] end
Public Instance Methods
<<(element)
click to toggle source
# File lib/merge_excel/sheets.rb, line 8 def <<(element) @array << element end
each() { |e| ... }
click to toggle source
# File lib/merge_excel/sheets.rb, line 12 def each @array.each{|e| yield e} end
each_with_index() { |e,i| ... }
click to toggle source
# File lib/merge_excel/sheets.rb, line 16 def each_with_index @array.each_with_index{|e, i| yield(e,i)} end
get_sheet(original_idx: )
click to toggle source
# File lib/merge_excel/sheets.rb, line 20 def get_sheet(original_idx: ) @array.find{|s| s.source_sheet_idx==original_idx} end