Class: Status

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

Instance Method Summary collapse

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