Class: Gate

Inherits:
Object
  • Object
show all
Defined in:
lib/sequential_check_question/ruby_6/1.rb,
lib/sequential_check_question/ruby_6/2.rb,
lib/sequential_check_question/ruby_6/3.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Gate

Returns a new instance of Gate.



14
15
16
# File 'lib/sequential_check_question/ruby_6/2.rb', line 14

def initialize(name)
  @name = name
end

Instance Method Details

#enter(ticket) ⇒ Object



22
23
# File 'lib/sequential_check_question/ruby_6/3.rb', line 22

def enter(ticket)
end

#exit(ticket) ⇒ Object



25
26
27
# File 'lib/sequential_check_question/ruby_6/3.rb', line 25

def exit(ticket)
  true
end