Skip to content

Instantly share code, notes, and snippets.

@siman-man
Last active August 29, 2015 14:01
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 siman-man/7b67cde15c7180bd8a45 to your computer and use it in GitHub Desktop.
Save siman-man/7b67cde15c7180bd8a45 to your computer and use it in GitHub Desktop.
shiritori's rule

ルール(2014/09/24)

  1. Rubyのversionは2.0.0と2.1.0に対応しています。
  2. 最初のオブジェクトは何でもOK
  3. 現在のオブジェクトで使用できるメソッドをつなげる
  4. 既出のメソッドの使用禁止( レシーバのクラスが異なる場合も同一視する )
  5. 既存のクラス、メソッドのオーバーライド禁止
  6. 実行時間が1秒を超える処理の禁止
  7. 繋げられるメソッドが無くなるまで続けます
  8. require, autoloadなどの追加のファイルを読み込むメソッドは禁止
  9. 楽しくメソッドチェインを作りましょう!

注意点

  • 1行で処理を全て書いて下さい
  • 引数などを渡すときも()で囲んであげて下さい。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment