Sha256: 52537396be75cdd7a1ae89b13d8b9465aaab5648325438ae3d5b6af7000885b4
Contents?: true
Size: 706 Bytes
Versions: 10
Compression:
Stored size: 706 Bytes
Contents
module Expressir module Model module Expressions # Specified in ISO 10303-11:2004 # - section 12.1 Arithmetic operators # - section 12.4.1 NOT operator class UnaryExpression < Expression MINUS = :MINUS NOT = :NOT PLUS = :PLUS model_attr_accessor :operator, ":MINUS, :NOT, :PLUS" model_attr_accessor :operand, "Expression" # @param [Hash] options # @option options [:MINUS, :NOT, :PLUS] :operator # @option options [Expression] :operand def initialize(options = {}) @operator = options[:operator] @operand = options[:operand] super end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems