Sha256: 722a075d887bd768c5a1ea29c860c6d860c9b434db0fd0f47b420d02bc1fc102

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

module RMXPExtractor
  require "rmxp_extractor/data_export"
  require "rmxp_extractor/data_import"
  require "rmxp_extractor/version"

  def self.usage
    STDERR.puts "usage: data-extractor.rb import|export"
    exit 1
  end

  def self.process(type)
    RMXPExtractor.usage if type.length < 1

    if type[0] == "import"
      RMXPExtractor.import
    elsif type[0] == "export"
      RMXPExtractor.export
    else
      RMXPExtractor.usage
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rmxp_extractor-1.2.1 lib/rmxp_extractor.rb
rmxp_extractor-1.2 lib/rmxp_extractor.rb