class Ellington::Target

Attributes

inner_list[R]

Public Class Methods

new(*states) click to toggle source
Calls superclass method
# File lib/ellington/target.rb, line 6
def initialize(*states)
  @inner_list = states.flatten
  super inner_list
end

Public Instance Methods

include?(state) click to toggle source
# File lib/ellington/target.rb, line 11
def include?(state)
  inner_list.include? state
end
satisfied?(passenger) click to toggle source
# File lib/ellington/target.rb, line 15
def satisfied?(passenger)
  return false if passenger.nil?
  include? passenger.current_state
end