Sha256: 02d263148c94be8f10419193a9451dfd9dc82b7fdda4317fd22f3033f9bb056a
Contents?: true
Size: 949 Bytes
Versions: 70
Compression:
Stored size: 949 Bytes
Contents
# require "eitil_integrate/application_exporter/selectors" require "eitil_integrate/application_exporter/initialize" module EitilIntegrate::RubyXL class ApplicationExporter private # rows def current_row x end def previous_row x - 1 end def next_row x + 1 end def first_row 0 end # columns def current_column y end def previous_column y - 1 end def next_column y + 1 end def first_column 0 end # RubyXL object selectors for rows. For columns I have not found a RubyXL object, # or a practical way of accessing the cells of a column, yet. def method_missing(_method, *args, &block) m = _method.to_s super _method unless m.include?('row') and m.ends_with?('_object') super _method unless respond_to? m.delete_suffix!('_object'), true sheet[send(m)] end end end
Version data entries
70 entries across 70 versions & 1 rubygems