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_steps, #build_variables, #source

Constructor Details

#initialize(name) ⇒ Vocabulary

Returns a new instance of Vocabulary.



101
102
103
# File 'lib/activefacts/cql/compiler/shared.rb', line 101

def initialize name
  @name = name
end

Instance Method Details

#compileObject



105
106
107
# File 'lib/activefacts/cql/compiler/shared.rb', line 105

def compile
  @constellation.Vocabulary @name
end

#to_sObject



109
110
111
# File 'lib/activefacts/cql/compiler/shared.rb', line 109

def to_s
  @name
end