fjord/main.rb
2024-03-24 22:20:46 +09:00

18 lines
187 B
Ruby

class Gate
def initialize(name)
@name = name
end
def enter(ticket)
end
def exit(ticket)
true
end
end
class Ticket
def initialize(fare)
@fare = fare
end
end