Module: Ingreedy

Defined in:
lib/ingreedy.rb,
lib/ingreedy/version.rb,
lib/ingreedy/dictionary.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, UnitVariationMapper

Constant Summary collapse

VERSION =
'0.0.7'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.localeObject

Returns the value of attribute locale.



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

def locale
  @locale
end

Class Method Details

.dictionariesObject



16
17
18
# File 'lib/ingreedy.rb', line 16

def dictionaries
  @dictionaries ||= DictionaryCollection.new
end

.parse(query) ⇒ Object



11
12
13
14
# File 'lib/ingreedy.rb', line 11

def parse(query)
  parser = Parser.new(query)
  parser.parse
end