ライブラリ
- ビルトイン (653)
- base64 (22)
- continuation (11)
- csv (11)
- drb (22)
- erb (14)
-
irb
/ inspector (11) - matrix (77)
-
minitest
/ spec (3) - mkmf (99)
- pathname (33)
- prime (66)
- psych (34)
- rake (33)
-
rexml
/ document (33) -
rinda
/ tuplespace (11) -
rubygems
/ dependency _ installer (11) -
rubygems
/ source _ info _ cache (22) - shellwords (11)
- socket (484)
- syslog (22)
- win32ole (22)
クラス
- CSV (11)
-
DRb
:: DRbObject (22) - Data (2)
- ERB (14)
- Enumerator (44)
-
Enumerator
:: Lazy (10) -
Gem
:: DependencyInstaller (11) -
Gem
:: SourceInfoCache (22) - Hash (122)
- IO (154)
-
IRB
:: Inspector (11) - Matrix (66)
- Method (11)
- Module (17)
- Object (2)
- Pathname (33)
-
Prime
:: PseudoPrimeGenerator (66) -
REXML
:: Child (11) -
REXML
:: Element (22) -
Rake
:: TaskArguments (11) - Refinement (3)
- Socket (242)
- String (76)
- Symbol (10)
- Thread (32)
- Time (11)
- Vector (11)
-
WIN32OLE
_ EVENT (22)
モジュール
- Base64 (22)
- Enumerable (105)
- FileUtils (11)
- Kernel (134)
- Marshal (22)
- Psych (34)
-
Rake
:: TaskManager (11) - Shellwords (11)
-
Socket
:: Constants (242) - Syslog (22)
キーワード
- < (11)
-
AI
_ PASSIVE (22) - Continuation (11)
-
EAI
_ NODATA (22) -
IFF
_ DYNAMIC (22) -
IPV6
_ PKTINFO (22) -
IPV6
_ RECVHOPLIMIT (22) -
IPV6
_ RECVPATHMTU (22) -
IP
_ BLOCK _ SOURCE (22) -
IP
_ HDRINCL (22) -
IP
_ PASSSEC (22) -
IP
_ PKTINFO (22) -
IP
_ PKTOPTIONS (22) -
IP
_ PORTRANGE (22) -
IP
_ RECVDSTADDR (22) -
IP
_ RECVIF (22) -
IP
_ RECVOPTS (22) -
IP
_ RECVSLLA (22) -
IP
_ RECVTOS (22) -
IP
_ RECVTTL (22) -
IP
_ UNBLOCK _ SOURCE (22) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Rubyの起動 (11)
-
SO
_ RECVUCRED (22) -
SO
_ TIMESTAMP (22) -
SO
_ TIMESTAMPNS (22) - TupleSpace (11)
-
_ _ drbref (11) -
angle
_ with (11) - build (22)
-
check
_ signedness (22) - children (11)
-
convertible
_ int (22) -
delete
_ prefix (7) -
delete
_ prefix! (7) -
delete
_ suffix (7) -
delete
_ suffix! (7) -
did
_ you _ mean (11) -
dir
_ config (11) -
drb
/ unix (11) - dump (44)
- each (22)
-
each
_ child (22) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ with _ index (66) -
each
_ with _ object (22) -
end
_ with? (16) -
enhance
_ with _ matching _ rule (11) - exit (11)
- filter! (12)
-
find
_ gems _ with _ sources (11) -
import
_ methods (3) -
infect
_ with _ assertions (1) -
keep
_ if (22) -
keys
_ with _ inspector (11) - mask (11)
- mask= (11)
-
max
_ by (44) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
net
/ pop (11) - new (37)
-
new
_ with _ uri (11) -
on
_ event (11) -
on
_ event _ with _ outargs (11) - popen (154)
-
rb
_ compile _ error _ with _ enc (11) -
rb
_ with _ disable _ interrupt (11) - rdoc (11)
-
rdoc
/ generator / json _ index (11) - receiver (11)
-
replace
_ with (11) -
report
_ on _ exception (16) -
report
_ on _ exception= (16) - result (7)
-
result
_ with _ hash (7) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (5) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / pristine _ command (11) -
rubygems
/ security (11) -
safe
_ load (12) -
search
_ with _ source (22) - select! (22)
- sh (11)
- shelljoin (11)
-
st
_ init _ numtable _ with _ size (11) -
st
_ init _ strtable _ with _ size (11) -
st
_ init _ table _ with _ size (11) -
start
_ with? (16) - strftime (11)
- system (24)
-
test
/ unit (1) -
to
_ h (17) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) -
urlsafe
_ decode64 (11) -
urlsafe
_ encode64 (11) -
with
_ config (22) -
with
_ defaults (11) -
with
_ index (54) -
with
_ object (44) -
with
_ werror (22) - xmlrpc (3)
- 字句構造 (11)
- 正規表現 (11)
検索結果
先頭5件
- IRB
:: Inspector . keys _ with _ inspector(inspector) -> Array - Data
# with(**kwargs) -> Data - IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO - IO
. popen([env = {} , cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO - IO
. popen(env = {} , [[cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO
-
IRB
:: Inspector . keys _ with _ inspector(inspector) -> Array (32207.0) -
引数で指定した IRB::Inspector に対応する key の配列を返します。
...引数で指定した IRB::Inspector に対応する key の配列を返します。
@param inspector IRB::Inspector オブジェクトを指定します。
IRB::Inspector.keys_with_inspector(IRB::Inspector::INSPECTORS[true])
# => [true, :p, "p", :inspect, "inspect"]... -
Data
# with(**kwargs) -> Data (24213.0) -
self をコピーしたオブジェクトを返します。
...メンバの値を指定します。
@raise ArgumentError 存在しないメンバを指定した場合に発生します。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
dog1 = Dog.new("Fred", 5) # => #<data Dog name="Fred", age=5>
dog2 = dog1.with(age: 6) # => #<data Dog name="Fred", ag......e=6>
p dog1 # => #<data Dog name="Fred", age=5>
dog3 = dog1.with(type: "Terrier") # => ArgumentError (unknown keyword: :type)
# メンバのオブジェクトはコピーされず、同じオブジェクトを参照する。
dog1.name.upcase!
p dog1 # => #<data Dog name="FRED",......age=5>
p dog2 # => #<data Dog name="FRED", age=6>
//}
[注意] 本メソッドの記述は Data のサブクラスのインスタンスに対して呼び
出す事を想定しています。Data.define は Data のサブクラスを作成する点に
注意してください。... -
IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (23112.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen([env = {} , cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (23112.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen(env = {} , [[cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (23112.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen(env = {} , [cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (23112.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen(env = {} , command , mode = "r" , opt={}) -> IO (23112.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen("-" , mode = "r" , opt={}) -> IO (23102.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...スでは 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.new や Kernel.#... -
IO
. popen("-" , mode = "r" , opt={}) {|io| . . . } -> object (23102.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...スでは 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.new や Kernel.#... -
IO
. popen(env , "-" , mode = "r" , opt={}) -> IO (23102.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...スでは 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.new や Kernel.#...