package outwatch.router.dsl trait Extractors { object IntVar { def unapply(str: String): Option[Int] = { if (!str.isEmpty) str.toIntOption else None } } }