7th Mon
script/consoleからドキュメントを読む方法
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 on Mon 7 Jan 2008 at 05:57 with 0 comments