Class: Status
- Inherits:
-
Expression
- Object
- Expression
- Status
- Defined in:
- lib/interpreter.rb
Instance Method Summary collapse
-
#evaluate(tickets, status) ⇒ Object
Searches tickets by status.
Instance Method Details
#evaluate(tickets, status) ⇒ Object
Searches tickets by status
34 35 36 37 38 |
# File 'lib/interpreter.rb', line 34 def evaluate(tickets, status) returning result = [] do tickets.each { |t| result.push(t) if t.status == status } end end |