Class: Gruesome::Machine

Inherits:
Object
  • Object
show all
Defined in:
lib/gruesome/machine.rb

Instance Method Summary collapse

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

#executeObject



13
14
15
# File 'lib/gruesome/machine.rb', line 13

def execute
  @machine.execute
end