Module: Munger

Defined in:
lib/munger/cli.rb,
lib/munger/munge.rb,
lib/munger/version.rb

Defined Under Namespace

Classes: CLI, Munge

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.munge(options = {}) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/munger/munge.rb', line 2

def self.munge(options={})
  content = Munger.raw_or_path(options, :content, :content_path)
  input = Munger.raw_or_path(options, :input, :input_path)
  munge = Munger::Munge.new(options)
  output = munge.run(input, content)
  Munger.raw_or_path(options, :output, :output_path, output)
end