Class: Expressir::Model::Literals::Logical
- Inherits:
-
Expressir::Model::Literal
- Object
- ModelElement
- Expressir::Model::Literal
- Expressir::Model::Literals::Logical
- Defined in:
- lib/expressir/model/literals/logical.rb
Overview
Specified in ISO 10303-11:2004
-
section 7.5.5 Logical literal
Constant Summary collapse
- TRUE =
:TRUE
- FALSE =
:FALSE
- UNKNOWN =
:UNKNOWN
Instance Attribute Summary collapse
Attributes inherited from ModelElement
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Logical
constructor
A new instance of Logical.
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 = {}) ⇒ Logical
Returns a new instance of Logical.
15 16 17 18 19 |
# File 'lib/expressir/model/literals/logical.rb', line 15 def initialize( = {}) @value = [:value] super end |
Instance Attribute Details
#value ⇒ :TRUE, ...
11 |
# File 'lib/expressir/model/literals/logical.rb', line 11 model_attr_accessor :value, ':TRUE, :FALSE, :UNKNOWN' |