Class: Wongi::Engine::GenerationClause
- Inherits:
-
Object
- Object
- Wongi::Engine::GenerationClause
- Defined in:
- lib/wongi-engine/dsl/generation_clause.rb
Instance Method Summary collapse
- #import_into(rete) ⇒ Object
-
#initialize(s, p, o) ⇒ GenerationClause
constructor
A new instance of GenerationClause.
Constructor Details
#initialize(s, p, o) ⇒ GenerationClause
Returns a new instance of GenerationClause.
4 5 6 |
# File 'lib/wongi-engine/dsl/generation_clause.rb', line 4 def initialize s, p, o @triple = Template.new( s, p, o ) end |
Instance Method Details
#import_into(rete) ⇒ Object
8 9 10 11 12 |
# File 'lib/wongi-engine/dsl/generation_clause.rb', line 8 def import_into rete generator = StatementGenerator.new @triple.import_into( rete ) generator.rete = rete generator end |