package gd.eval
import gd.eval.languages._

object Router {
  def route(language: String, code: String) = language match {
    case "ruby" | "mri" => Ruby(code)
    case "scala" => Scala(code)
    case "c" => C(code)
  }
}

package gd.eval
import gd.eval.languages._

object Router {
  def route(language: String, code: String) = language match {
    case "ruby" | "mri" => Some(Ruby(code))
    case "scala" => Some(Scala(code))
    case "c" => Some(C(code))
    case _ => None
  }
}

Make Router.route return an Option[SandboxedLanguage], and None if we hit an unimplemented language.
Make Router.route return an Option[SandboxedLanguage], and None if we hit an unimplemented language.
