I have a class that I want to reference by two different names when using it. The only way I can think to do this is.
class Entrance
def open
puts "the door is open"
end
end
class Exit < Entrance
end
The thing is that in this example I want to represent that Entrance and Exit are the exact same thing, not that an Exit is a type of Entrance. Is there a better way to represent this?