Method: RDF::Query::Solution#each_variable
- Defined in:
- lib/rdf/query/solution.rb
#each_variable {|variable| ... } ⇒ Enumerator
Enumerates over every variable in this solution.
134 135 136 137 138 139 140 141 |
# File 'lib/rdf/query/solution.rb', line 134 def each_variable if block_given? @bindings.each do |name, value| yield Variable.new(name, value) end end enum_variable end |