class Jayamouli::Fun

Public Instance Methods

gen() click to toggle source
# File lib/jayamouli.rb, line 19
      def gen
      puts "Enter your Name"
      name1 = gets.chomp
      puts "Enter you Age"
      age = gets.chomp
      puts "Question Time"
      puts
      puts "You are a computer Freak? type only (yes) or (no)"
      ans = gets.chomp
      case ans.downcase
              when "yes"
                      puts "Good you are in my TEAM..."

              when "no"
                      puts "Intresting then why you are HERE...."
              else 
                      puts "Your entered other than yes or no 
                       Any way"

              end 
              puts
              puts "your Details with some Extra Spice"
              puts 
              puts "Your Gooooooood name - #{name1} and your age is #{age} + Some Extra SPICE"
end