Class: RDF::Query::Solutions
- Inherits:
-
Object
- Object
- RDF::Query::Solutions
- Defined in:
- lib/publisci/query/query_helper.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/publisci/query/query_helper.rb', line 4 def to_h arr=[] self.map{|solution| h={} solution.map{|element| h[element[0]] = element[1] } arr << h } arr end |