Class: Summary

Inherits:
Expression show all
Defined in:
lib/interpreter.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(tickets, text) ⇒ Object

Searches tickets by summary



61
62
63
64
65
# File 'lib/interpreter.rb', line 61

def evaluate(tickets, text)
  returning result = [] do
    tickets.each { |t| result.push(t) if t.summary.match(text) }
  end
end