Skip to content

Instantly share code, notes, and snippets.

@ikennaokpala
Forked from casualjim/gist:1109670
Created July 27, 2011 19:17
Show Gist options
  • Save ikennaokpala/1110141 to your computer and use it in GitHub Desktop.
Save ikennaokpala/1110141 to your computer and use it in GitHub Desktop.
type Transformer = Request => Request
object OptimusPrime extends Transformer { def apply(req: Request) = req }
object Megatron extends Transformer { def apply(req: Request) = throw new RuntimeException("Invalid operation!")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment