Sha256: 43150b8416c60283ec747cc4a790bd1af851fa8fa29e7ac9badf9239e9e58833

Contents?: true

Size: 1.53 KB

Versions: 3

Compression:

Stored size: 1.53 KB

Contents

require "open-uri"
require "csv"

require_relative "masticate/version"
require_relative "masticate/base"
require_relative "masticate/myoptparse"

require_relative "masticate/sniffer"
require_relative "masticate/mender"
require_relative "masticate/csvify"
require_relative "masticate/plucker"
require_relative "masticate/datify"
require_relative "masticate/gsubber"
require_relative "masticate/max_rows"
require_relative "masticate/concat"
require_relative "masticate/relabel"
require_relative "masticate/exclude"
require_relative "masticate/transform"

require_relative "masticate/cook"

module Masticate
  def self.sniff(filename, opts = {})
    Sniffer.new(filename).sniff(opts)
  end

  def self.mend(filename, opts)
    Mender.new(filename).mend(opts)
  end

  def self.csvify(filename, opts)
    Csvify.new(filename).csvify(opts)
  end

  def self.pluck(filename, opts)
    Plucker.new(filename).pluck(opts)
  end

  def self.datify(filename, opts)
    Datify.new(filename).datify(opts)
  end

  def self.gsub(filename, opts)
    Gsubber.new(filename).gsub(opts)
  end

  def self.maxrows(filename, opts)
    MaxRows.new(filename).maxrows(opts)
  end

  def self.concat(filenames, opts)
    Concat.new(filenames).concat(opts)
  end

  def self.relabel(filename, opts)
    Relabel.new(filename).relabel(opts)
  end

  def self.exclude(filename, opts)
    Exclude.new(filename).exclude(opts)
  end

  def self.cook(filename, opts)
    Cook.new(filename).cook(opts)
  end

  def self.transform(filename, opts)
    Transform.new(filename).transform(opts)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
masticate-0.4.2 lib/masticate.rb
masticate-0.4.1 lib/masticate.rb
masticate-0.4.0 lib/masticate.rb