Class: AssignedTo

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

Instance Method Summary collapse

Instance Method Details

#evaluate(tickets, to) ⇒ Object



37
38
39
40
41
# File 'lib/interpreter.rb', line 37

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