Class: Textecho::Randgen

Inherits:
Base
  • Object
show all
Defined in:
lib/textecho/randgen.rb

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

#processObject



4
5
6
7
8
9
10
11
# File 'lib/textecho/randgen.rb', line 4

def process()
 n=rand*10
 nn=rand*10
 self.output_message=n.to_s+" "+nn.to_s
 puts "outbound message is "+ self.output_message if debug
 self.add_msg(self.output_message)
 self.msgs
end