種類
- 特異メソッド (187)
- インスタンスメソッド (66)
- 文書 (26)
- ライブラリ (11)
ライブラリ
- ビルトイン (154)
- csv (11)
-
irb
/ output-method (33) - prettyprint (33)
-
rexml
/ document (11) - win32ole (11)
クラス
- CSV (11)
- IO (154)
-
IRB
:: OutputMethod (33) - PrettyPrint (33)
-
REXML
:: Attribute (11) -
WIN32OLE
_ PARAM (11)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) - format (11)
- input? (11)
- new (11)
- popen (154)
- pp (11)
- ppx (11)
- puts (11)
- rdoc (11)
-
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 9 feature (11) -
singleline
_ format (11) - write (11)
検索結果
先頭5件
- PrettyPrint
# output -> object - PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object - WIN32OLE
_ PARAM # input? -> bool - REXML
:: Attribute # write(output , indent = -1) -> object - IRB
:: OutputMethod # ppx(prefix , *objs) -> object
-
PrettyPrint
# output -> object (21318.0) -
自身の output を返します。
...自身の output を返します。... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (15614.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text......の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
WIN32OLE
_ PARAM # input? -> bool (9218.0) -
パラメータがクライアントからサーバへ与えるものかを判定します。
...ます。
OLEオートメーションのパラメータは、in(クライアントからサーバへ与える。
WIN32OLE_PARAM#input?が真)、out(サーバがクライアントへ与える。
WIN32OLE_PARAM#output?が真)および、inout(クライアントからサーバ
へ与え、サー......を持ち
ます。
input?メソッドはin属性またはinout属性なら真を返します。
@return メソッドの方向属性がinまたはinoutならば真を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj,......'SaveAs')
param1 = method.params[0]
puts param1.input? # => true
@see http://msdn.microsoft.com/en-us/library/aa367051(v=VS.85).aspx... -
REXML
:: Attribute # write(output , indent = -1) -> object (6431.0) -
output に self の情報を name='value' という形式で書き込みます。
...output に self の情報を name='value' という形式で書き込みます。
output が返ります。
@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される... -
IRB
:: OutputMethod # ppx(prefix , *objs) -> object (6301.0) -
引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。
...引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。
@param prefix 各 obj の先頭に追記する文字列を指定します。
@param objs 任意のオブジェクトを指定します。... -
IRB
:: OutputMethod # pp(*objs) -> object (6201.0) -
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
...各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。... -
IRB
:: OutputMethod # puts(*objs) -> object (6201.0) -
各 obj を self に出力し、それぞれの後に改行を出力します。
各 obj を self に出力し、それぞれの後に改行を出力します。
@param objs 任意のオブジェクトを指定します。 -
PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (3442.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 与えられた output を返します。
...int オブジェクトを生成し、それを引数としてブロックを実行します。
与えられた output を返します。
以下と同じ働きをするもので簡便のために用意されています。
//emlist[][ruby]{
require 'prettyprint'
begin
pp = PrettyPrint.new(output......, maxwidth, newline, &genspace)
...
pp.flush
output
end
//}
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 行の最大幅を指定します。ただし、改行できないものが渡された場合は、......実際の出力幅は maxwidth を越えることがあります。
@param newline 改行に使われます。
@param genspace 空白の生成に使われる Proc オブジェクトを指定します。
生成したい空白の幅を表す整数を引数として呼... -
IO
. popen("-" , mode = "r" , opt={}) {|io| . . . } -> object (3334.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...字列 "-" が指定された時、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 オブジェクトを引数に
ブロックを実行し、その結果......。
子プロセスでは nil を引数にブロックを実行し終了します。
p IO.popen("-", "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 (3334.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...字列 "-" が指定された時、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 オブジェクトを引数に
ブロックを実行し、その結果......。
子プロセスでは nil を引数にブロックを実行し終了します。
p IO.popen("-", "r+") {|io|
if io # parent
io.puts "foo"
io.gets
else # child
s = gets
puts "child output: " + s
end
}
# => "child output: foo\n"
opt ではエン...