helpコマンドを使うと、script/consoleから非常に簡単に ドキュメントを参照することができます。 使い方は以下の通り。

   1  >> help CGI
   2  ------------------------------------------------------------- Class: CGI
   3       Wrapper around the CGIMethods that have been secluded to allow
   4       testing without an instantiated CGI object
   5  
   6  ------------------------------------------------------------------------
   7       TODO: document how this differs from stdlib CGI::Cookie
   8  
   9  ------------------------------------------------------------------------
  10       TODO: document how this differs from stdlib CGI::Cookie
  11  
  12  ------------------------------------------------------------------------
  13       Wrapper around the CGIMethods that have been secluded to allow
  14       testing without an instantiated CGI object
  15  
  16  ------------------------------------------------------------------------
  17       TODO: document how this differs from stdlib CGI::Cookie
  18  
  19  ------------------------------------------------------------------------
  20  (END)

引数としてクラスや文字列を渡すと、riと同じようにドキュメントを 照会することができます。ちょっと便利ですね。

posted by Png genki on Mon 7 Jan 2008 at 05:57

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry300
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ