Sha256: 4fda899f4b8f454c71c2a9d419d6a53b477ec60e0c4b14aa107a64d8402a7a4c

Contents?: true

Size: 334 Bytes

Versions: 11

Compression:

Stored size: 334 Bytes

Contents

require_relative './operation'

module Dentaku
  module AST
    class BitwiseOr < Operation
      def value(context = {})
        left.value(context) | right.value(context)
      end
    end

    class BitwiseAnd < Operation
      def value(context = {})
        left.value(context) & right.value(context)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dentaku-3.4.2 lib/dentaku/ast/bitwise.rb
dentaku-3.4.1 lib/dentaku/ast/bitwise.rb
dentaku-3.4.0 lib/dentaku/ast/bitwise.rb
dentaku-3.3.4 lib/dentaku/ast/bitwise.rb
dentaku-3.3.3 lib/dentaku/ast/bitwise.rb
dentaku-3.3.2 lib/dentaku/ast/bitwise.rb
dentaku-3.3.1 lib/dentaku/ast/bitwise.rb
dentaku-3.3.0 lib/dentaku/ast/bitwise.rb
dentaku-3.2.1 lib/dentaku/ast/bitwise.rb
dentaku-3.2.0 lib/dentaku/ast/bitwise.rb
dentaku-3.1.0 lib/dentaku/ast/bitwise.rb