Class: Textecho::Randgen
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 10 11 |
# File 'lib/textecho/randgen.rb', line 4 def process() n=rand*10 nn=rand*10 self.=n.to_s+" "+nn.to_s puts "outbound message is "+ self. if debug self.add_msg(self.) self.msgs end |