• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

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

pre>>

help CGI
------------------------------------------------------------- Class: CGI
Wrapper around the CGIMethods that have been secluded to allow
testing without an instantiated CGI object


 TODO: document how this differs from stdlib CGI::Cookie

 TODO: document how this differs from stdlib CGI::Cookie

 Wrapper around the CGIMethods that have been secluded to allow
 testing without an instantiated CGI object

 TODO: document how this differs from stdlib CGI::Cookie

(END)
<<--

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

posted by genki genki on Mon 7 Jan 2008 at 05:57 with 0 comments