Finaly it went through my head... thanks for all the help guys! (correct 
me if I am wrong)

1.Before 0. ##this thing is looking for the ascii character before 0 
which
              is (/)(.)(-)(,)(+) and so on.
2.After 9 but before A. ## this (:)(;)(<)(=)(<)(?)(@)
3.After Z but before a. ## this (`)(_)(^)(])(\)([)
4.After z. ## this ({)(|)(})(~) and so on....

its like what letter will come next after A.... and thats B and so on...
I put the code of my exercise...

yeah I know bad programming and lazy but the important thing now i 
understand what the exercise is all about. I could have used  array but 
this is much straight forward. yeah cheating heheehehehe. I didn't 
include
the other ascii too many.

puts "type any ascii character: "
lies = gets.chomp.to_s
asci = true
########### Before 0 :asci characte  to type (/) (.) (-)
if lies == "/"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " before 0"
elsif lies == "."
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " before 0"
elsif lies == "-"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " before 0"
###########After 9 but before A
elsif  lies == "@"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "?"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == ">"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "="
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "<"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == ";"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == ":"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
########### After Z but before a
elsif  lies == "`"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "_"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "^"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "]"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
########### After z
elsif  lies == "~"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "}"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "|"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
elsif  lies == "{"
puts lies + " is "+ asci.to_s + " " + lies.ord.to_s + " After 9 but 
before A"
end

-- 
Posted via http://www.ruby-forum.com/.