Class: Status

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

Instance Method Summary collapse

Instance Method Details

#evaluate(tickets, status) ⇒ Object



21
22
23
24
25
# File 'lib/interpreter.rb', line 21

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