All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xitrum.scope.request.At.scala Maven / Gradle / Ivy

The newest version!
package xitrum.scope.request

import scala.collection.mutable.HashMap
import xitrum.util.SeriDeseri

/** Equivalent to @xxx variables of Rails */
class At extends HashMap[String, Any] {
  def apply[T](key: String): T = super.apply(key).asInstanceOf[T]

  def toJson(key: String): String = {
    val obj = apply[AnyRef](key)
    SeriDeseri.toJson(obj)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy