Class: Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/zombie-chaser/interface.rb

Direct Known Subclasses

ConsoleInterface, GuiInterface

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#human=(value) ⇒ Object (writeonly)

Sets the attribute human

Parameters:

  • value

    the value to set the attribute human to.



4
5
6
# File 'lib/zombie-chaser/interface.rb', line 4

def human=(value)
  @human = value
end

#zombie_list=(value) ⇒ Object (writeonly)

Sets the attribute zombie_list

Parameters:

  • value

    the value to set the attribute zombie_list to.



4
5
6
# File 'lib/zombie-chaser/interface.rb', line 4

def zombie_list=(value)
  @zombie_list = value
end

Instance Method Details

#finish_if_neccessaryObject



10
11
# File 'lib/zombie-chaser/interface.rb', line 10

def finish_if_neccessary
end

#interface_puts(*args) ⇒ Object



13
14
15
16
# File 'lib/zombie-chaser/interface.rb', line 13

def interface_puts(*args)
  puts(*args)
  STDOUT.flush
end

#sleep(duration) ⇒ Object



6
7
8
# File 'lib/zombie-chaser/interface.rb', line 6

def sleep(duration)
  super
end