added ruby trinary