Module: Ingreedy
- Defined in:
- lib/ingreedy.rb,
lib/ingreedy/version.rb,
lib/ingreedy/dictionary.rb,
lib/ingreedy/root_parser.rb,
lib/ingreedy/rationalizer.rb,
lib/ingreedy/amount_parser.rb,
lib/ingreedy/ingreedy_parser.rb,
lib/ingreedy/dictionary_collection.rb,
lib/ingreedy/unit_variation_mapper.rb,
lib/ingreedy/case_insensitive_parser.rb
Defined Under Namespace
Modules: CaseInsensitiveParser
Classes: AmountParser, Dictionary, DictionaryCollection, Parser, Rationalizer, RootParser, UnitVariationMapper
Constant Summary
collapse
- VERSION =
"0.0.8"
Class Method Summary
collapse
Class Method Details
.dictionaries ⇒ Object
21
22
23
|
# File 'lib/ingreedy.rb', line 21
def self.dictionaries
@dictionaries ||= DictionaryCollection.new
end
|
.locale ⇒ Object
8
9
10
|
# File 'lib/ingreedy.rb', line 8
def self.locale
@locale ||= nil
end
|
.locale=(locale) ⇒ Object
12
13
14
|
# File 'lib/ingreedy.rb', line 12
def self.locale=(locale)
@locale = locale
end
|
.parse(query) ⇒ Object
16
17
18
19
|
# File 'lib/ingreedy.rb', line 16
def self.parse(query)
parser = Parser.new(query)
parser.parse
end
|