Module: Nickel

Defined in:
lib/nickel.rb,
lib/nickel/nlp.rb,
lib/nickel/zdate.rb,
lib/nickel/ztime.rb,
lib/nickel/version.rb,
lib/nickel/construct.rb,
lib/nickel/nlp_query.rb,
lib/nickel/occurrence.rb,
lib/nickel/construct_finder.rb,
lib/nickel/nlp_query_constants.rb,
lib/nickel/construct_interpreter.rb

Defined Under Namespace

Modules: NLPQueryConstants Classes: Construct, ConstructFinder, ConstructInterpreter, DateConstruct, DateSpanConstruct, NLP, NLPQuery, NullConstruct, Occurrence, RecurrenceConstruct, TimeConstruct, TimeSpanConstruct, WrapperConstruct, ZDate, ZTime

Constant Summary collapse

VERSION =
'0.1.6'

Class Method Summary collapse

Class Method Details

.parse(query, date_time = Time.now) ⇒ Object



12
13
14
15
16
# File 'lib/nickel.rb', line 12

def parse(query, date_time = Time.now)
  n = NLP.new(query, date_time)
  n.parse
  n
end