Sha256: 277f9641ab352e9e01ce65d226d8f4aa93f1011808060a4b610fa1cd146ec488

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

module ATP
  class Formatter < Processor
    def format(node, options = {})
      process(node)
    end

    def self.format(node, options = {})
      new.format(node, options)
    end

    def self.run_and_format(node, options = {})
      ast = Runner.new.run(node, options)
      format(ast, options)
    end

    def self.run(*args)
      run_and_format(*args)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
atp-0.3.2 lib/atp/formatter.rb
atp-0.3.1 lib/atp/formatter.rb
atp-0.3.0 lib/atp/formatter.rb
atp-0.2.1 lib/atp/formatter.rb
atp-0.2.0 lib/atp/formatter.rb