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) ⇒ Vocabulary
constructor
A new instance of Vocabulary.
- #to_s ⇒ Object
Methods inherited from Definition
#all_bindings_in_clauses, #build_all_steps, #build_step, #build_variables, #source
Constructor Details
#initialize(name) ⇒ Vocabulary
Returns a new instance of Vocabulary.
114 115 116 |
# File 'lib/activefacts/cql/compiler/shared.rb', line 114 def initialize name @name = name end |
Instance Method Details
#compile ⇒ Object
118 119 120 121 122 123 124 |
# File 'lib/activefacts/cql/compiler/shared.rb', line 118 def compile if @constellation.Vocabulary.size > 0 @constellation.Topic @name else @constellation.Vocabulary @name end end |
#to_s ⇒ Object
126 127 128 |
# File 'lib/activefacts/cql/compiler/shared.rb', line 126 def to_s @name end |