module Gearbox::QueryableImplementation

Public Class Methods

included(base) click to toggle source
# File lib/gearbox/mixins/queryable_implementation.rb, line 3
def self.included(base)
  base.send :include, RDF::Queryable
end

Public Instance Methods

each(opts={}, &block) click to toggle source

Depends on RDF::Queryable, SemanticAccessors and SubjectMethods

# File lib/gearbox/mixins/queryable_implementation.rb, line 8
def each(opts={}, &block)
  attribute_definitions.map{|name, attribute| attribute.to_rdf(self, opts)}.each(&block)
end
Also aliased as: each_statement
each_statement(opts={}, &block)
Alias for: each