irbを使っているときに、オブジェクトにどんなメソッドが 定義されているのかをpublic_methodsなどで調べることが 出来ますが、たいていの場合大量のメソッドがリストアップされて わかりにくくなってしまいます。

今回は、そんなときに良くやる方法を紹介します。

   1  >> Time.public_methods.sort - Object.public_methods
   2  => ["_load", "at", "days_in_month", "gm", "httpdate", "iso8601", "local", "local_time", "mktime", "now", "parse", "rfc2822", "rfc822", "time_with_datetime_fallback", "times", "today", "utc", "utc_time", "xmlschema", "yaml_new", "zone_offset"]

public_methodsからObjectpublic_methodsを取り除いたものを 表示しています。Objectの代わりに適当な親クラスを指定することで、 クラス階層の特定の領域で定義されたメソッドを表示することも できますね。

posted by Png genki on Mon 21 Jan 2008 at 14:14

Now, we are working on ShootingStar-4.0.0

It will be working on Windows by using WaitForMultipleObject API. I loved it since more than 10 years ago and thought it as is one of a beautiful aspect of Windows.

It may be shipped on next month.

posted by Png genki on Mon 21 Jan 2008 at 06:46
Contents
irbでメソッド一覧を探す方法のTips
ShootingStar: Road to 4.0.0
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
瀧内元気: おお、チェックしてみます。thx! '11-12
overisland: Reeder for iPhone もこの UI を実装していますね。 '11-12
瀧内元気: その情報は見たのですが、以下のサイトによると、現在はまた必要になってるっぽいんですよね。 ... '11-12
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ