Note that the "sane" variable again doesn't make sense, because you're 
aren't using it. Leave it out:

def sane?
  if "a" == "a" then "true" else "false" end
end

You might also use the ternary operator:

def sane?
  "a" == "a" ? "true" : "false"
end

or directly return the result of the comparison:

def sane?
  "a" == "a"
end

This will, however, return a boolean instead of a string.

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