Permalink
Browse files

Choice Question: Ask will show the choice

  • Loading branch information...
1 parent b7d2088 commit 45f8039d28688dfbea2aefa484843af6f62dca62 @burtlo committed Nov 6, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/choice.rb
View
@@ -3,6 +3,10 @@
class Robut::Plugin::Quiz::Choice
include Robut::Plugin::Quiz::Question
+ def ask
+ "@all Question '#{@question}' (#{@parameters.map {|p| "'#{p}'" }.join("/")})"
+ end
+
def handle_response(sender_nick,response)
if a_valid_choice response

0 comments on commit 45f8039

Please sign in to comment.