Sha256: baf7484475749647c80aa89ac66c4c0710bc6d7ade63f836a09b9d158e3c5313

Contents?: true

Size: 403 Bytes

Versions: 25

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

# Operator Enum in Java. To be used only internally in RuleEvaluator class.
class Operator
  # Not('!', Byte.MAX_VALUE), And('&', (byte) 2), Or('|', (byte) 1)

  attr_reader :name, :symbol, :precedence

  def initialize(name: '', symbol: '', precedence: -1)
    @name = name
    @symbol = symbol
    @precedence = precedence
  end

  def to_s
    @operator.to_s
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rast-1.0.0 lib/rast/rules/operator.rb
rast-0.19.1 lib/rast/rules/operator.rb
rast-0.19.0 lib/rast/rules/operator.rb
rast-0.18.0 lib/rast/rules/operator.rb
rast-0.15.1 lib/rast/rules/operator.rb
rast-0.14.0 lib/rast/rules/operator.rb
rast-0.11.4 lib/rast/rules/operator.rb
rast-0.11.3 lib/rast/rules/operator.rb
rast-0.11.1 lib/rast/rules/operator.rb
rast-0.11.0 lib/rast/rules/operator.rb
rast-0.10.0 lib/rast/rules/operator.rb
rast-0.9.0 lib/rast/rules/operator.rb
rast-0.9.0.pre lib/rast/rules/operator.rb
rast-0.8.1.pre lib/rast/rules/operator.rb
rast-0.8.0.pre lib/rast/rules/operator.rb
rast-0.6.2.pre lib/rast/rules/operator.rb
rast-0.6.1.pre lib/rast/rules/operator.rb
rast-0.6.0.pre lib/rast/rules/operator.rb
rast-0.4.2.pre lib/rast/rules/operator.rb
rast-0.4.1.pre lib/rast/rules/operator.rb