Sha256: f33c3c604091ef437aa61d732813f792d24588ee5b5185934ec43cb5ac10c606
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
require_relative './operation' module Dentaku module AST class BitwiseOr < Operation def value(context = {}) left.value(context) | right.value(context) end def operator :| end end class BitwiseAnd < Operation def value(context = {}) left.value(context) & right.value(context) end def operator :& end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dentaku-3.5.0 | lib/dentaku/ast/bitwise.rb |