class Textecho::Timecheck
Public Instance Methods
check_keyword()
click to toggle source
# File lib/textecho/timecheck.rb, line 5 def check_keyword() help_resp={"en"=>"send time to xxxx","te"=>"teturm: time to xxxx", "ba"=>"bahasa: time to xxxx"} out="Time is: #{Time.now.to_s}" if self.input_message.chomp=="time" out=self.help(help_resp) if self.input_message.chomp!="time" out end
process()
click to toggle source
# File lib/textecho/timecheck.rb, line 11 def process() self.output_message=check_keyword() puts "outbound message is "+ self.output_message if debug self.add_msg(self.output_message) self.msgs end