種類
- 特異メソッド (204)
- インスタンスメソッド (72)
- 文書 (29)
- クラス (12)
- ライブラリ (12)
ライブラリ
- ビルトイン (168)
- csv (24)
-
irb
/ output-method (36) - prettyprint (36)
-
rexml
/ document (12) - win32ole (12)
クラス
- CSV (12)
- IO (168)
-
IRB
:: OutputMethod (36) - PrettyPrint (36)
-
REXML
:: Attribute (12) -
WIN32OLE
_ PARAM (12)
キーワード
- CSV (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - format (12)
- input? (12)
- new (12)
- popen (168)
- pp (12)
- ppx (12)
- puts (12)
- rdoc (12)
-
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
singleline
_ format (12) - write (12)
検索結果
先頭5件
-
PrettyPrint
# output -> object (18218.0) -
自身の output を返します。
...自身の output を返します。... -
IRB
:: OutputMethod # pp(*objs) -> object (3101.0) -
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。 -
IRB
:: OutputMethod # ppx(prefix , *objs) -> object (3101.0) -
引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。
引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。
@param prefix 各 obj の先頭に追記する文字列を指定します。
@param objs 任意のオブジェクトを指定します。 -
IRB
:: OutputMethod # puts(*objs) -> object (3101.0) -
各 obj を self に出力し、それぞれの後に改行を出力します。
各 obj を self に出力し、それぞれの後に改行を出力します。
@param objs 任意のオブジェクトを指定します。 -
PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (242.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 与えられた output を返します。
...与えられた output を返します。
以下と同じ働きをするもので簡便のために用意されています。
//emlist[][ruby]{
require 'prettyprint'
begin
pp = PrettyPrint.new(output, maxwidth, newline, &genspace)
...
pp.flush
output
end
//}
@param output 出力先を......指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 行の最大幅を指定します。ただし、改行できないものが渡された場合は、
実際の出力幅は maxwidth を越えることがあります。
@param n... -
REXML
:: Attribute # write(output , indent = -1) -> object (230.0) -
output に self の情報を name='value' という形式で書き込みます。
...output に self の情報を name='value' という形式で書き込みます。
output が返ります。
@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (214.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...す。ブロック中の breakable の実行は、
改行せずに text の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視... -
IO
. popen("-" , mode = "r" , opt={}) {|io| . . . } -> object (131.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit
end
ブロックを与えられた場合、親プロセスでは生成した IO オブ......en("-", "r+") {|io|
if io # parent
io.puts "foo"
io.gets
else # child
s = gets
puts "child output: " + s
end
}
# => "child output: foo\n"
opt ではエンコーディングの設定やプロセス起動のためのオプションが指定できます。... -
IO
. popen(env , "-" , mode = "r" , opt={}) {|io| . . . } -> object (131.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit
end
ブロックを与えられた場合、親プロセスでは生成した IO オブ......en("-", "r+") {|io|
if io # parent
io.puts "foo"
io.gets
else # child
s = gets
puts "child output: " + s
end
}
# => "child output: foo\n"
opt ではエンコーディングの設定やプロセス起動のためのオプションが指定できます。...