Class: Expressir::Model::Literals::Logical

Inherits:
Expressir::Model::Literal show all
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

#parent

Instance Method Summary collapse

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.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :value (:TRUE, :FALSE, :UNKNOWN)


15
16
17
18
19
# File 'lib/expressir/model/literals/logical.rb', line 15

def initialize(options = {})
  @value = options[:value]

  super
end

Instance Attribute Details

#value:TRUE, ...

Returns:

  • (:TRUE, :FALSE, :UNKNOWN)


11
# File 'lib/expressir/model/literals/logical.rb', line 11

model_attr_accessor :value, ':TRUE, :FALSE, :UNKNOWN'