Class: Amigo::InitialResult
- Includes:
- Hamster::Immutable
- Defined in:
- lib/amigo/initial_result.rb
Constant Summary collapse
Instance Method Summary collapse
- #add(where) ⇒ Object
-
#initialize(variables, triples) ⇒ InitialResult
constructor
A new instance of InitialResult.
- #solutions ⇒ Object
Constructor Details
#initialize(variables, triples) ⇒ InitialResult
Returns a new instance of InitialResult.
16 17 18 19 |
# File 'lib/amigo/initial_result.rb', line 16 def initialize(variables, triples) @variables = variables @triples = triples end |
Instance Method Details
#add(where) ⇒ Object
21 22 23 |
# File 'lib/amigo/initial_result.rb', line 21 def add(where) JoinResult.new(@variables, @triples, where.select(@triples)) end |