Class: Summary
- Inherits:
-
Expression
- Object
- Expression
- Summary
- Defined in:
- lib/interpreter.rb
Instance Method Summary collapse
-
#evaluate(tickets, text) ⇒ Object
Searches tickets by summary.
Instance Method Details
#evaluate(tickets, text) ⇒ Object
Searches tickets by summary
59 60 61 62 63 |
# File 'lib/interpreter.rb', line 59 def evaluate(tickets, text) returning result = [] do tickets.each { |t| result.push(t) if t.summary.match(text) } end end |