Method: Pc::Campfire#run

Defined in:
lib/pc/interfaces/campfire.rb

#run(options = {}) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/pc/interfaces/campfire.rb', line 9

def run(options = {})
  @room ||= Nico::Room.new options
  while action = (@actions ||= []).shift
    say action[:message]
    choose(action[:choices]).call
    run
  end
end