Sha256: b04b636ef19c4c345318064aae6524ab6c90960fe467b83a7abca613b233f809

Contents?: true

Size: 365 Bytes

Versions: 4

Compression:

Stored size: 365 Bytes

Contents

module Antelope
  module DSL
    module Contexts
      class Precedence < Base
        def precedence(type, contents)
          @precedences << [type].concat(contents)
        end

        private

        attr_reader :precedences
        alias_method :data, :precedences

        def before_call
          @precedences = []
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
antelope-0.4.1 lib/antelope/dsl/contexts/precedence.rb
antelope-0.4.0 lib/antelope/dsl/contexts/precedence.rb
antelope-0.3.2 lib/antelope/dsl/contexts/precedence.rb
antelope-0.3.0 lib/antelope/dsl/contexts/precedence.rb