Skip to content

Instantly share code, notes, and snippets.

@daiksy
Created July 1, 2012 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiksy/3026573 to your computer and use it in GitHub Desktop.
Save daiksy/3026573 to your computer and use it in GitHub Desktop.
副作用のある変態
case class Hentai(val smKind: SMKind.Type) {
def slap = {
smKind match {
case SMKind.S => "てめぇ、なにするんだ!"
case SMKind.M => "もっと!!!"
}
}
}
object SMKind extends Enumeration {
type Type = Value
val S = Value(1, "サド")
val M = Value(2, "マゾ")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment