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( = {}) @room ||= Nico::Room.new while action = (@actions ||= []).shift say action[:message] choose(action[:choices]).call run end end |