Class: Gulp

Inherits:
Object
  • Object
show all
Defined in:
lib/gulp.rb,
lib/gulp/corpus.rb,
lib/gulp/phrase.rb,
lib/gulp/document.rb,
lib/gulp/data_store.rb,
lib/gulp/phrase_extractor.rb

Defined Under Namespace

Classes: Corpus, DataStore, Document, Phrase, PhraseExtractor, XMLTextExtractor

Constant Summary collapse

VERSION =
'0.0.1'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Gulp

Returns a new instance of Gulp.



9
10
11
# File 'lib/gulp.rb', line 9

def initialize(options)
  @corpus = Corpus.new(options[:database_directory])
end

Instance Attribute Details

#corpusObject (readonly)

Returns the value of attribute corpus.



8
9
10
# File 'lib/gulp.rb', line 8

def corpus
  @corpus
end

Instance Method Details

#new_from_xml_file(path) ⇒ Object



13
14
15
# File 'lib/gulp.rb', line 13

def new_from_xml_file(path)
  Gulp::Document.new(path, @corpus)
end