Class: Expressir::Model::Expressions::UnaryExpression
- Inherits:
-
Expressir::Model::Expression
- Object
- ModelElement
- Expressir::Model::Expression
- Expressir::Model::Expressions::UnaryExpression
- Defined in:
- lib/expressir/model/expressions/unary_expression.rb
Overview
Specified in ISO 10303-11:2004
-
section 12.1 Arithmetic operators
-
section 12.4.1 NOT operator
Constant Summary collapse
- MINUS =
:MINUS
- NOT =
:NOT
- PLUS =
:PLUS
Instance Attribute Summary collapse
Attributes inherited from ModelElement
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ UnaryExpression
constructor
A new instance of UnaryExpression.
Methods inherited from ModelElement
#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
#initialize(options = {}) ⇒ UnaryExpression
Returns a new instance of UnaryExpression.
18 19 20 21 22 23 |
# File 'lib/expressir/model/expressions/unary_expression.rb', line 18 def initialize( = {}) @operator = [:operator] @operand = [:operand] super end |
Instance Attribute Details
#operand ⇒ Expression
13 |
# File 'lib/expressir/model/expressions/unary_expression.rb', line 13 model_attr_accessor :operand, "Expression" |
#operator ⇒ :MINUS, ...
12 |
# File 'lib/expressir/model/expressions/unary_expression.rb', line 12 model_attr_accessor :operator, ":MINUS, :NOT, :PLUS" |