Class: RDF::Queryable::Enumerator
- Inherits:
-
Enumerator
- Object
- Enumerator
- RDF::Queryable::Enumerator
- Includes:
- Enumerable, RDF::Queryable
- Defined in:
- lib/rdf/mixin/queryable.rb
Overview
Extends Enumerator with RDF::Queryable and Enumerable, which is used by Enumerable#each_statement and #enum_for
Instance Method Summary collapse
Methods included from Enumerable
#canonicalize, #canonicalize!, #dump, #each_graph, #each_object, #each_predicate, #each_quad, #each_statement, #each_subject, #each_term, #each_triple, #enum_graph, #enum_object, #enum_predicate, #enum_quad, #enum_statement, #enum_subject, #enum_term, #enum_triple, #graph?, #graph_names, #invalid?, #object?, #objects, #predicate?, #predicates, #project_graph, #quad?, #quads, #statement?, #statements, #subject?, #subjects, #supports?, #term?, #terms, #to_h, #to_set, #triple?, #triples, #valid?, #validate!
Methods included from Util::Aliasing::LateBound
Methods included from Countable
Methods included from RDF::Queryable
#enum_for, #first, #first_literal, #first_object, #first_predicate, #first_subject, #first_value, #query
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RDF::Enumerable
Instance Method Details
#to_a ⇒ Array
Make sure returned arrays are also queryable
22 23 24 |
# File 'lib/rdf/mixin/queryable.rb', line 22 def to_a return super.to_a.extend(RDF::Queryable, RDF::Enumerable) end |