Class: Door
- Inherits:
-
Object
- Object
- Door
- Defined in:
- lib/gates_of_moria/door.rb
Class Method Summary collapse
Class Method Details
.read ⇒ Object
2 3 4 |
# File 'lib/gates_of_moria/door.rb', line 2 def self.read "fcrnx sevraq naq ragre" end |
.tell(text) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/gates_of_moria/door.rb', line 6 def self.tell text if text == 'sevraq' "The door opens!" else "The door remains firmly shut." end end |