Class: ActiveFacts::CQL::Compiler::Vocabulary
- Inherits:
-
Definition
- Object
- Definition
- ActiveFacts::CQL::Compiler::Vocabulary
- Defined in:
- lib/activefacts/cql/compiler/shared.rb
Instance Attribute Summary
Attributes inherited from Definition
#constellation, #tree, #vocabulary
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(name, is_transform, version_number) ⇒ Vocabulary
constructor
A new instance of Vocabulary.
- #to_s ⇒ Object
Methods inherited from Definition
#all_bindings_in_clauses, #assert_literal_value, #build_all_steps, #build_step, #build_variables, #source
Constructor Details
#initialize(name, is_transform, version_number) ⇒ Vocabulary
Returns a new instance of Vocabulary.
124 125 126 127 128 |
# File 'lib/activefacts/cql/compiler/shared.rb', line 124 def initialize name, is_transform, version_number @name = name @is_transform = is_transform @version_number = version_number end |
Instance Method Details
#compile ⇒ Object
130 131 132 133 134 135 136 |
# File 'lib/activefacts/cql/compiler/shared.rb', line 130 def compile if @constellation.Vocabulary.size > 0 @constellation.Topic @name else @constellation.Vocabulary(@name, is_transform: @is_transform, version_number: @version_number) end end |
#to_s ⇒ Object
138 139 140 |
# File 'lib/activefacts/cql/compiler/shared.rb', line 138 def to_s @name end |