module Exportable::ExportMethods

This module serves as a container for export modules

Public Instance Methods

export(format, options = {}) click to toggle source
# File lib/exportable/export_methods.rb, line 8
def export(format, options = {})
  unless Exportable.formats.include?(format.to_sym)
    raise ArgumentError, "Unsupported output format '#{format}'"
  end
  send("export_#{format}", options)
end