Class: Gruesome::Machine
- Inherits:
-
Object
- Object
- Gruesome::Machine
- Defined in:
- lib/gruesome/machine.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(story_file) ⇒ Machine
constructor
A new instance of Machine.
Constructor Details
#initialize(story_file) ⇒ Machine
Returns a new instance of Machine.
5 6 7 8 9 10 11 |
# File 'lib/gruesome/machine.rb', line 5 def initialize(story_file) # Later, detect the type # # For now, assume Z-Machine @machine = Z::Machine.new(story_file) end |
Instance Method Details
#execute ⇒ Object
13 14 15 |
# File 'lib/gruesome/machine.rb', line 13 def execute @machine.execute end |