Sha256: d2f85b2418c0dd96d71175dc615cb2e3153286c164d7416f6a785d858f669e7c

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

require 'ast'
module ATP
  class Validator < Processor
    attr_reader :flow

    def initialize(flow)
      @flow = flow
    end

    def process(node)
      if @top_level_called
        super
      else
        @top_level_called = true
        setup
        super(node)
        exit 1 if on_completion
      end
    end

    def setup
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atp-0.2.1 lib/atp/validator.rb