Module: RDF::Indexable

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/mixin/indexable.rb

Overview

A mixin that can be used to mark RDF repository implementations as indexable.

Since:

  • 0.3.0

Instance Method Summary collapse

Instance Method Details

#index!self

This method is abstract.

Indexes self.

Returns:

  • (self)

Raises:

  • (NotImplementedError)

Since:

  • 0.3.0



22
23
24
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/mixin/indexable.rb', line 22

def index!
  raise NotImplementedError, "#{self.class}#index!"
end

#indexed?Boolean

This method is abstract.

Returns true if self is indexed at present.

Returns:

  • (Boolean)

Since:

  • 0.3.0



13
14
15
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/mixin/indexable.rb', line 13

def indexed?
  false
end