Sha256: 59ce53965698bd5815cae5df35dd36e0f17e88fda683c2d8aaa1a5fd5f16ab95

Contents?: true

Size: 503 Bytes

Versions: 16

Compression:

Stored size: 503 Bytes

Contents

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

    def run_and_format(node, options = {})
      ast = Runner.new.run(node, options)
      format(ast, options)
    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

16 entries across 16 versions & 1 rubygems

Version Path
atp-1.1.3 lib/atp/formatter.rb
atp-1.1.2 lib/atp/formatter.rb
atp-1.1.1 lib/atp/formatter.rb
atp-1.1.0 lib/atp/formatter.rb
atp-1.0.0 lib/atp/formatter.rb
atp-0.8.0 lib/atp/formatter.rb
atp-0.7.0 lib/atp/formatter.rb
atp-0.6.0 lib/atp/formatter.rb
atp-0.5.4 lib/atp/formatter.rb
atp-0.5.3 lib/atp/formatter.rb
atp-0.5.0 lib/atp/formatter.rb
atp-0.4.3 lib/atp/formatter.rb
atp-0.4.2 lib/atp/formatter.rb
atp-0.4.1 lib/atp/formatter.rb
atp-0.4.0 lib/atp/formatter.rb
atp-0.3.3 lib/atp/formatter.rb