Class: TimePatterns::TimePatternsFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/todo_time_patterns/time_patterns_finder.rb

Instance Method Summary collapse

Instance Method Details

#find_and_update(tokens) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/todo_time_patterns/time_patterns_finder.rb', line 7

def find_and_update(tokens)
  tokens_with_time = find_and_update_time tokens
  tokens_with_intervals = find_and_update_intervals tokens_with_time
  result = find_and_update_ending_forms tokens_with_intervals

  result
end