Module: RDF::Indexable

Defined in:
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 '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 'lib/rdf/mixin/indexable.rb', line 13

def indexed?
  false
end