module Exporter
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
# File lib/exporter.rb, line 13 def self.configuration @configuration ||= Configuration.new end
export(data, export_type, options={})
click to toggle source
# File lib/exporter.rb, line 17 def self.export(data, export_type, options={}) exporter = @configuration.exporter(data, export_type) if exporter exporter.export(data, options) else raise ArgumentError.new("Not support this data type: #{data.class} ") end end