Class: Ldpath::UnionSelector
- Inherits:
-
CompoundSelector
- Object
- Selector
- CompoundSelector
- Ldpath::UnionSelector
- Defined in:
- lib/ldpath/selectors.rb
Instance Attribute Summary
Attributes inherited from CompoundSelector
Instance Method Summary collapse
Methods inherited from CompoundSelector
Methods inherited from Selector
Constructor Details
This class inherits a constructor from Ldpath::CompoundSelector
Instance Method Details
#evaluate(program, uris, context) ⇒ Object
177 178 179 180 181 182 183 |
# File 'lib/ldpath/selectors.rb', line 177 def evaluate(program, uris, context) return to_enum(:evaluate, program, uris, context) unless block_given? enum_union(left.evaluate(program, uris, context), right.evaluate(program, uris, context)).each do |x| yield x end end |