Sha256: fecfd4193efe235a2d1993e28eb7c8b84ed2af1a247b25afdc320fbc0e0dcc31
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
# require "eitil_integrate/application_exporter/log_state" module EitilIntegrate::RubyXL class ApplicationExporter private def log_state return unless write_log == true # create_log_sheet book.add_worksheet('log') # manage sheets previous_sheet = @sheet.sheet_name @sheet = @book["log"] # manage coordinates previous_x = @x @x = 0 # log everything we want to log report_state # restore what was previously active @sheet = @book[previous_sheet] @x = previous_x end def report_state instance_variables.each do |ivar| variable_name = ivar.to_s variable_value = instance_variable_get(ivar).to_s array_to_row [variable_name, variable_value] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eitil-1.1.2 | eitil_integrate/lib/eitil_integrate/application_exporter/log_state.rb |