3360件ヒット
[1-100件を表示]
(0.056秒)
種類
ライブラリ
- ビルトイン (1875)
-
irb
/ inspector (24) - json (24)
- logger (12)
-
minitest
/ spec (2) -
minitest
/ unit (18) -
net
/ http (24) -
net
/ imap (24) -
net
/ telnet (2) - objspace (12)
- open-uri (24)
- open3 (48)
- openssl (204)
- prettyprint (12)
- pty (12)
- rake (12)
- readline (48)
-
rexml
/ sax2listener (12) - rss (36)
-
rubygems
/ command _ manager (12) - shell (18)
-
shell
/ command-processor (462) -
shell
/ process-controller (102) -
syslog
/ logger (12) - tracer (84)
-
webrick
/ httpauth (12) -
webrick
/ httpproxy (12) -
webrick
/ httpserver (36) -
webrick
/ httpservlet / prochandler (48)
クラス
- Enumerator (31)
-
Gem
:: CommandManager (12) - Hash (111)
- IO (12)
-
IRB
:: Inspector (12) - Logger (12)
- Method (60)
-
MiniTest
:: Spec (2) -
MiniTest
:: Unit (1) - Module (24)
-
Net
:: HTTP (24) -
Net
:: IMAP (24) -
Net
:: Telnet (2) - Object (48)
-
OpenSSL
:: SSL :: SSLContext (180) -
OpenSSL
:: X509 :: Store (24) - PrettyPrint (12)
- Proc (129)
-
Process
:: Status (36) -
RSS
:: Maker :: ItemsBase (12) -
RSS
:: Rss :: Channel :: Cloud (24) -
RubyVM
:: InstructionSequence (36) - Shell (18)
-
Shell
:: CommandProcessor (462) -
Shell
:: ProcessController (102) - String (36)
- Symbol (12)
-
Syslog
:: Logger (12) - Thread (24)
- TracePoint (7)
- Tracer (84)
- UnboundMethod (24)
-
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPServer (36) -
WEBrick
:: HTTPServlet :: ProcHandler (48)
モジュール
- Enumerable (48)
- IRB (12)
- JSON (24)
- Kernel (145)
- Marshal (48)
-
MiniTest
:: Assertions (17) - ObjectSpace (48)
- Open3 (48)
- OpenURI (24)
- PTY (12)
- Process (560)
-
Process
:: GID (96) -
Process
:: Sys (180) -
Process
:: UID (84) -
REXML
:: SAX2Listener (12) -
Rake
:: TaskManager (12) - Readline (48)
-
RubyVM
:: AbstractSyntaxTree (10) - Signal (24)
-
WEBrick
:: HTTPAuth (12) - Warning (6)
オブジェクト
- main (24)
キーワード
-
$ ? (12) - & (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (14)
- == (12)
- === (12)
- >> (26)
-
FILENAME
_ COMPLETION _ PROC (12) - Inspector (12)
- Marshal フォーマット (12)
- Method (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- Tms (12)
-
USERNAME
_ COMPLETION _ PROC (12) -
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - WUNTRACED (12)
- [] (36)
- abort (24)
- activate (6)
-
active
_ job? (6) -
active
_ process _ controllers (6) -
add
_ delegate _ command _ to _ shell (6) -
add
_ filter (36) -
add
_ response _ handler (24) -
add
_ schedule (6) -
add
_ trace _ func (12) - after (1)
-
alias
_ command (12) - append (6)
- argv0 (12)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
at
_ exit (12) - atime (6)
- basename (6)
-
basic
_ auth (12) - before (1)
-
block
_ output _ synchronize (6) - blockdev? (6)
- call (12)
- capture2 (12)
- capture2e (12)
- capture3 (12)
- cat (6)
-
change
_ privilege (24) - chardev? (6)
- check (12)
-
check
_ point (6) - chmod (6)
- chown (6)
-
client
_ cert _ cb (12) -
client
_ cert _ cb= (12) -
clock
_ gettime (12) -
close
_ on _ exec= (12) -
command
_ processor (6) -
completion
_ proc (12) -
completion
_ proc= (12) - concat (6)
-
count
_ tdata _ objects (12) -
create
_ rule (12) - ctime (6)
- curry (46)
- daemon (12)
-
def
_ builtin _ commands (6) -
def
_ inspector (12) -
def
_ system _ command (6) - default (24)
-
default
_ proc (12) -
default
_ proc= (12) -
define
_ finalizer (24) -
define
_ method (48) -
define
_ singleton _ method (24) - delete (6)
- detach (12)
- detect (24)
- directory? (6)
- dirname (6)
- disasm (12)
- disassemble (12)
-
display
_ process _ id= (12) -
do
_ GET (12) -
do
_ POST (12) -
do
_ sort= (12) - dump (24)
-
each
_ active _ object (6) - echo (6)
- egid (12)
- egid= (12)
- eid (12)
- eid= (24)
- encode (36)
- euid (12)
- euid= (12)
- exec (12)
- executable? (6)
-
executable
_ real? (6) - exist? (6)
- exists? (6)
- exit (12)
- exit! (12)
- file? (6)
- find (24)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- fork (24)
- format (12)
- formatter (12)
- formatter= (12)
-
from
_ name (24) - ftype (6)
-
get
_ instance (12) - getegid (12)
- geteuid (12)
- getgid (12)
- getpgid (12)
- getpgrp (12)
- getpriority (12)
- getrlimit (12)
- getsid (12)
- getuid (12)
- gid (12)
- gid= (12)
- glob (6)
-
grant
_ privilege (24) - groups (12)
- groups= (12)
- grpowned? (6)
- identical? (6)
- inactivate (6)
- initgroups (12)
- initialize (6)
-
install
_ system _ commands (6) - issetugid (12)
- join (6)
- kill (12)
-
kill
_ job (6) - lambda (18)
-
last
_ status (8) - link (6)
- load (24)
- logger (12)
- lstat (6)
- maxgroups (12)
- maxgroups= (12)
-
method
_ added (6) - mkdir (6)
-
mount
_ proc (24) - mtime (6)
- new (110)
- notify (6)
- of (22)
- open (6)
-
open
_ uri (24) - out (6)
- owned? (6)
- parameters (43)
- pid (12)
- pipe? (6)
- pipeline (12)
- pp (12)
- ppid (12)
- preprocess (2)
-
process
_ args (13) -
process
_ controller (6) -
process
_ controllers _ exclusive (6) -
processing
_ instruction (12) -
rb
_ scan _ args (12) -
re
_ exchange (24) - readable? (6)
-
readable
_ real? (6) - readlink (6)
- registerProcedure (12)
- registerProcedure= (12)
- rename (6)
-
renegotiation
_ cb (12) -
renegotiation
_ cb= (12) - restore (24)
- rm (6)
- rmdir (6)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby2
_ keywords _ hash? (6) - send (24)
-
servername
_ cb= (12) -
session
_ get _ cb (12) -
session
_ get _ cb= (12) -
session
_ new _ cb (12) -
session
_ new _ cb= (12) -
session
_ remove _ cb (12) -
session
_ remove _ cb= (12) -
set
_ get _ line _ procs (36) -
set
_ trace _ func (24) - setegid (12)
- seteuid (12)
- setgid (12)
- setgid? (6)
- setpgid (12)
- setpgrp (12)
- setpriority (12)
- setproctitle (12)
- setregid (12)
- setresgid (12)
- setresuid (12)
- setreuid (12)
- setrgid (12)
- setrlimit (24)
- setruid (12)
- setsid (12)
- setuid (12)
- setuid? (6)
- sfork (6)
- shell (6)
- shift (9)
- size (18)
- size? (6)
- socket? (6)
-
source
_ location (36) - spawn (12)
- split (6)
-
start
_ job (6) - stat (6)
- sticky? (6)
- switch (48)
- symlink (6)
- symlink? (6)
- system (6)
- tee (6)
-
terminate
_ job (6) - test (6)
- times (12)
-
tmp
_ dh _ callback (12) -
tmp
_ dh _ callback= (12) -
to
_ proc (12) -
trace
_ var (36) - trap (48)
- truncate (6)
- uid (12)
- uid= (12)
-
unalias
_ command (6) -
undef
_ system _ command (12) -
undefine
_ finalizer (12) - unlink (6)
-
untrace
_ var (12) - utime (6)
-
values
_ at (12) -
verify
_ callback (36) -
verify
_ callback= (36) - wait (12)
- wait2 (12)
-
wait
_ to _ finish _ all _ process _ controllers (6) -
waiting
_ job? (6) - waitpid (12)
- waitpid2 (12)
-
world
_ readable? (6) -
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6) - yield (12)
- zero? (6)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
検索結果
先頭5件
-
Kernel
. # proc -> Proc (15478.0) -
与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。
...与えられたブロックから手続きオブジェクト (Proc のインスタンス)
を生成して返します。Proc.new に近い働きをします。
ブロックが指定されなければ、呼び出し元のメソッドで指定されたブロック
を手続きオブジェクトと......までは警告メッセージ
「warning: tried to create Proc object without a block」
が出力され、Ruby 2.7 では
ArgumentError (tried to create Proc object without a block)
が発生します。
ブロックを指定しない proc は、Ruby 2.7 では
$VERBOSE = true のときには警......告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生します。
@raise ArgumentError スタック上にブロックがないのにブロ... -
Kernel
. # proc { . . . } -> Proc (15478.0) -
与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。
...与えられたブロックから手続きオブジェクト (Proc のインスタンス)
を生成して返します。Proc.new に近い働きをします。
ブロックが指定されなければ、呼び出し元のメソッドで指定されたブロック
を手続きオブジェクトと......までは警告メッセージ
「warning: tried to create Proc object without a block」
が出力され、Ruby 2.7 では
ArgumentError (tried to create Proc object without a block)
が発生します。
ブロックを指定しない proc は、Ruby 2.7 では
$VERBOSE = true のときには警......告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生します。
@raise ArgumentError スタック上にブロックがないのにブロ... -
Kernel
. # proc -> Proc (15477.0) -
与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。
...与えられたブロックから手続きオブジェクト (Proc のインスタンス)
を生成して返します。Proc.new に近い働きをします。
ブロックが指定されなければ、呼び出し元のメソッドで指定されたブロック
を手続きオブジェクトと......までは警告メッセージ
「warning: tried to create Proc object without a block」
が出力され、Ruby 2.7 では
ArgumentError (tried to create Proc object without a block)
が発生します。
ブロックを指定しない proc は、Ruby 2.7 では
$VERBOSE = true のときには警......告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生します。
@raise ArgumentError スタック上にブロックがないのにブロ... -
Kernel
. # proc { . . . } -> Proc (15477.0) -
与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。
...与えられたブロックから手続きオブジェクト (Proc のインスタンス)
を生成して返します。Proc.new に近い働きをします。
ブロックが指定されなければ、呼び出し元のメソッドで指定されたブロック
を手続きオブジェクトと......までは警告メッセージ
「warning: tried to create Proc object without a block」
が出力され、Ruby 2.7 では
ArgumentError (tried to create Proc object without a block)
が発生します。
ブロックを指定しない proc は、Ruby 2.7 では
$VERBOSE = true のときには警......告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生します。
@raise ArgumentError スタック上にブロックがないのにブロ......与えられたブロックから手続きオブジェクト (Proc のインスタンス)
を生成して返します。Proc.new に近い働きをします。
また、lambda に & 引数を渡すのは推奨されません。& 引数ではなくてブロック記法で記述する必要があ......deprecated; use the proc without lambda instead」
を出力します。
@raise ArgumentError ブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo &block
lambda(&block)
end
it = foo{p 12}
it.call #=> 12
//}
@see Proc,Proc.new
===[a:should......では Proc#call)
へジャンプし値を返すには next を使います。break や return ではありません。
//emlist[例][ruby]{
def foo
f = Proc.new{
next 1
2 # この行に到達することはない
}
end
p foo().call #=> 1
//}
===[a:block] Proc オ......deprecated; use the proc without lambda instead」
を出力します。
@raise ArgumentError ブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo &block
proc(&block)
end
it = foo{p 12}
it.call #=> 12
//}
@see Proc,Proc.new
===[a:should_... -
Proc
# curry -> Proc (9172.0) -
Procをカリー化します
...Procをカリー化します
カリー化したProcはいくつかの引数をとります。十分な数の引数が与えられると、元のProcに引数を渡し
て実行し、結果を返します。引数の個数が足りないときは、部分適用したカリー化Procを返します......。
@param arity 引数の個数を指定します
@return カリー化したProcオブジェクトを返します
//emlist[例][ruby]{
b = proc {|x, y, z| (x||0) + (y||0) + (z||0) }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 6
p b.curry(5)[1][2][3][4][5] #=> 6
p b.curry(......5)[1, 2][3, 4][5] #=> 6
p b.curry(1)[1] #=> 1
b = proc {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p b.curry(1)[1] #=> 1
b... -
Proc
# curry(arity) -> Proc (9172.0) -
Procをカリー化します
...Procをカリー化します
カリー化したProcはいくつかの引数をとります。十分な数の引数が与えられると、元のProcに引数を渡し
て実行し、結果を返します。引数の個数が足りないときは、部分適用したカリー化Procを返します......。
@param arity 引数の個数を指定します
@return カリー化したProcオブジェクトを返します
//emlist[例][ruby]{
b = proc {|x, y, z| (x||0) + (y||0) + (z||0) }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 6
p b.curry(5)[1][2][3][4][5] #=> 6
p b.curry(......5)[1, 2][3, 4][5] #=> 6
p b.curry(1)[1] #=> 1
b = proc {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p b.curry(1)[1] #=> 1
b... -
Proc
# <<(callable) -> Proc (9171.0) -
self と引数を合成した Proc を返します。
...成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します。
Proc#>> とは呼......び出しの順序が逆になります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 + 3) * (3 + 3)
p (f << g).call(3) # => 36
//}
//emlist[call を定義した......anner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = proc { |data| puts "word count: #{data.size}" } << WordScanner << File.method(:read)
pipeline.call('testfile') # => word count: 4
//}
@see Method#<<, Method#>>... -
Proc
# >>(callable) -> Proc (9171.0) -
self と引数を合成した Proc を返します。
...成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します。
Proc#<< とは呼......び出しの順序が逆になります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 * 3) + (3 * 3)
p (f >> g).call(3) # => 18
//}
//emlist[call を定義した......anner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = proc { |fname| File.read(fname) } >> WordScanner >> method(:p)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Method#<<, Method#>>... -
Proc
. new -> Proc (9162.0) -
ブロックをコンテキストとともにオブジェクト化して返します。
...OSE = true のときには警告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生します。
ブロックを指定しなければ、こ......合は明示的に & 引数でうけるべきです。
@raise ArgumentError スタック上にブロックがないのにブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo
pr = Proc.new
pr.call(1)
end
foo {|arg| p arg }
# => 1
//}
こ......entError が発生します。
//emlist[例][ruby]{
def foo
Proc.new
end
foo
# => -:2:in `new': tried to create Proc object without a block (ArgumentError)
# from -:2:in `foo'
# from -:4:in `<main>'
//}
Proc.new は、Proc#initialize が定義されていれば
オブジェクト... -
Proc
. new { . . . } -> Proc (9162.0) -
ブロックをコンテキストとともにオブジェクト化して返します。
...OSE = true のときには警告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生します。
ブロックを指定しなければ、こ......合は明示的に & 引数でうけるべきです。
@raise ArgumentError スタック上にブロックがないのにブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo
pr = Proc.new
pr.call(1)
end
foo {|arg| p arg }
# => 1
//}
こ......entError が発生します。
//emlist[例][ruby]{
def foo
Proc.new
end
foo
# => -:2:in `new': tried to create Proc object without a block (ArgumentError)
# from -:2:in `foo'
# from -:4:in `<main>'
//}
Proc.new は、Proc#initialize が定義されていれば
オブジェクト......す。
@raise ArgumentError ブロックを省略した呼び出しを行ったときに発生します。
//emlist[][ruby]{
pr = Proc.new {|arg| p arg }
pr.call(1) # => 1
//}
//emlist[][ruby]{
Proc.new # => -e:1:in `new': tried to create Proc object without a block (ArgumentError)
//}
Proc.new......は、Proc#initialize が定義されていれば
オブジェクトの初期化のためにこれを呼び出します。このことを
除けば、Kernel.#proc と同じです。... -
Shell
:: ProcessController . active _ process _ controllers -> () (9116.0) -
@todo
...@todo... -
Shell
:: ProcessController . process _ controllers _ exclusive -> () (9116.0) -
@todo
...@todo... -
Shell
:: ProcessController . wait _ to _ finish _ all _ process _ controllers -> () (9116.0) -
@todo
...@todo... -
Shell
:: ProcessController :: USING _ AT _ EXIT _ WHEN _ PROCESS _ EXIT -> true (9116.0) -
@todo
...@todo...