Skip to content

Instantly share code, notes, and snippets.

@esehara
Last active August 29, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esehara/8b0b56f73b39eb49cc62 to your computer and use it in GitHub Desktop.
Save esehara/8b0b56f73b39eb49cc62 to your computer and use it in GitHub Desktop.
実行可能小説
class String
def to_hash
{:as => self}
end
end
def method_missing(name, *args)
name.to_s + (args.join(""))
end
def 「 (*args)
puts ("「" + (args.join(""))).to_s
.split("。").join("。\n")
.split("』").join("』\n")
end
def ジャバ(*args)
method_missing(:Java, *args)
end
def Ruby(*args)
method_missing(:Scala, *args)
end
「 それはある日のことだった。雨音がなりひびく中、 ジャバ ジャバ と足音という音が、ひとけの居ない倉庫で鳴り響いている。この男は、誰かに追われているのだろうか。 後ろからは銃声。追われていた男の足元には、血が流れている。銃口からは煙があざ笑うかのように出ている。『だから、言っただろーー』男はあざ笑うかのように、その男を見下ろしていた。『最初から Ruby にしておけば良かったのさ』……そう言うと、二つの影は立ち去った」
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment