Class: ActiveFacts::CQL::Compiler::Vocabulary

Inherits:
Definition
  • Object
show all
Defined in:
lib/activefacts/cql/compiler/shared.rb

Instance Attribute Summary

Attributes inherited from Definition

#constellation, #tree, #vocabulary

Instance Method Summary collapse

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

#compileObject



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_sObject



126
127
128
# File 'lib/activefacts/cql/compiler/shared.rb', line 126

def to_s
  @name
end