Class: ActiveFacts::CQL::Compiler::TransformRule
- Inherits:
-
Definition
- Object
- Definition
- ActiveFacts::CQL::Compiler::TransformRule
- Defined in:
- lib/activefacts/cql/compiler/transform_rule.rb
Instance Attribute Summary collapse
-
#compound_matching ⇒ Object
Returns the value of attribute compound_matching.
Attributes inherited from Definition
#constellation, #tree, #vocabulary
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(compound_matching) ⇒ TransformRule
constructor
A new instance of TransformRule.
Methods inherited from Definition
#all_bindings_in_clauses, #build_all_steps, #build_step, #build_variables, #source, #to_s
Constructor Details
#initialize(compound_matching) ⇒ TransformRule
Returns a new instance of TransformRule.
14 15 16 |
# File 'lib/activefacts/cql/compiler/transform_rule.rb', line 14 def initialize compound_matching @compound_matching = compound_matching end |
Instance Attribute Details
#compound_matching ⇒ Object
Returns the value of attribute compound_matching.
12 13 14 |
# File 'lib/activefacts/cql/compiler/transform_rule.rb', line 12 def compound_matching @compound_matching end |
Instance Method Details
#compile ⇒ Object
18 19 20 21 22 |
# File 'lib/activefacts/cql/compiler/transform_rule.rb', line 18 def compile context = CompilationContext.new(@vocabulary) transform_matching = @compound_matching.compile(context) @constellation.TransformRule(:new, :compound_matching => transform_matching) end |