Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created July 27, 2011 15:55
Show Gist options
  • Save casualjim/1109670 to your computer and use it in GitHub Desktop.
Save casualjim/1109670 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