Class: Id

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

Instance Method Summary collapse

Instance Method Details

#evaluate(tickets, id) ⇒ Object



29
30
31
32
33
# File 'lib/interpreter.rb', line 29

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