Created
July 27, 2011 15:55
-
-
Save casualjim/1109670 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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