Class: Textecho::Multimessage
Instance Attribute Summary
Attributes inherited from Base
#input_message, #locale, #msg_source, #output_list, #output_message, #params, #shortcode
Instance Method Summary collapse
Methods inherited from Base
#add_msg, #debug, #disabled_message, #handle_message, #help, #help_prefix, #msgs, #setup
Instance Method Details
#process ⇒ Object
4 5 6 7 8 9 |
# File 'lib/textecho/multimessage.rb', line 4 def process() n=rand*10.to_i 0.upto(n) {|i| amsg="#{i} of #{n} : #{Time.now}" self.add_msg(amsg) } self.msgs end |