Module: Dnif::Indexer::InstanceMethods

Defined in:
lib/dnif/indexer.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



43
44
45
# File 'lib/dnif/indexer.rb', line 43

def index
  self.class.indexes[self.class.name]
end

#indexesObject



39
40
41
# File 'lib/dnif/indexer.rb', line 39

def indexes
  self.class.indexes
end

#to_sphinxObject



47
48
49
50
# File 'lib/dnif/indexer.rb', line 47

def to_sphinx
  document = Document.new(self)
  document.generate
end