33件ヒット
[1-33件を表示]
(0.140秒)
ライブラリ
- ビルトイン (11)
-
cgi
/ core (11) - prettyprint (11)
クラス
-
ARGF
. class (11) - CGI (11)
- PrettyPrint (11)
キーワード
-
inplace
_ mode (11) - newline (11)
検索結果
-
CGI
# print(*strings) (18226.0) -
@todo
...@todo
引数の文字列を標準出力に出力します。
cgi.print は $DEFAULT_OUTPUT.print と等価です。
例:
cgi = CGI.new
cgi.print "This line is a part of content body.\r\n"... -
PrettyPrint
# newline -> String (9202.0) -
自身の改行文字を返します。
自身の改行文字を返します。 -
ARGF
. class # inplace _ mode -> String | nil (126.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
...# => ".bak"
ARGF.each_line {|e|print e.upcase} # => "TEST"
例:
# $ echo "test" > test.txt
# $ ruby test.rb test.txt
# $ cat test.txt # => "test"
# test.rb
ARGF.inplace_mode # => nil
ARGF.each_line {|e|print e.upcase} # => "TEST"
@see d:spec/ruby...