エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
RedHanded » Stick it in Your ~/.irbrc: MethodFinder
Ooh, nice ripoff from Smalltalk. A class called MethodFinder for looking up methods based on what... Ooh, nice ripoff from Smalltalk. A class called MethodFinder for looking up methods based on what they should return. You use MethodFinder.show( "hello", 5 ) and it’ll suggest the length and size methods. Maybe we could hack it to be a bit more terse? >> "hello".what? 5 "hello".length 5 “hello”.size == 5 => [“length”, “size”] >> “foo”.what?(“bar”) "foobar" "foo". [“ Just add to Andrew’s code: cla
2006/05/17 リンク