Module: I18n::Processes::Command::Commands::XLSX
- Includes:
- I18n::Processes::Command::Collection
- Included in:
- I18n::Processes::Commands
- Defined in:
- lib/i18n/processes/command/commands/xlsx.rb
Instance Method Summary collapse
Methods included from I18n::Processes::Command::Collection
Instance Method Details
#xlsx_report(opt = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/i18n/processes/command/commands/xlsx.rb', line 16 def xlsx_report(opt = {}) begin require 'axlsx' rescue LoadError = %(For spreadsheet report please add axlsx gem to Gemfile:\ngem 'axlsx', '~> 2.0') log_stderr Rainbow().red.bright exit 1 end spreadsheet_report.save_report opt[:path], opt.except(:path) end |