種類
ライブラリ
- English (24)
- ビルトイン (2991)
- benchmark (12)
- etc (48)
-
irb
/ context (12) -
irb
/ inspector (24) - json (24)
- logger (24)
-
minitest
/ spec (2) -
minitest
/ unit (18) -
net
/ http (44) -
net
/ imap (24) -
net
/ telnet (2) - objspace (12)
- open-uri (24)
- open3 (48)
- openssl (228)
- prettyprint (24)
- profiler (6)
- pty (24)
- rake (24)
- readline (48)
-
rexml
/ sax2listener (12) - rss (36)
-
rubygems
/ command (12) -
rubygems
/ command _ manager (12) - shell (18)
-
shell
/ command-processor (504) -
shell
/ process-controller (150) -
syslog
/ logger (12) - tracer (108)
-
webrick
/ httpauth (12) -
webrick
/ httpauth / basicauth (12) -
webrick
/ httpproxy (12) -
webrick
/ httpserver (36) -
webrick
/ httpservlet / prochandler (60)
クラス
-
Benchmark
:: Job (12) - Enumerator (31)
-
Enumerator
:: Yielder (6) -
Gem
:: Command (12) -
Gem
:: CommandManager (12) - Hash (121)
- IO (12)
-
IRB
:: Inspector (12) - LocalJumpError (24)
- Logger (24)
- Method (72)
-
MiniTest
:: Spec (2) -
MiniTest
:: Unit (1) - Module (24)
-
Net
:: HTTP (24) -
Net
:: IMAP (24) -
Net
:: Telnet (2) - Object (60)
-
OpenSSL
:: SSL :: SSLContext (192) -
OpenSSL
:: X509 :: Store (24) -
PTY
:: ChildExited (12) - PrettyPrint (24)
- Proc (219)
-
Process
:: Status (180) -
Process
:: Tms (96) -
RSS
:: Maker :: ItemsBase (12) -
RSS
:: Rss :: Channel :: Cloud (24) -
Rake
:: FileList (12) -
RubyVM
:: InstructionSequence (36) - Shell (18)
-
Shell
:: CommandProcessor (498) -
Shell
:: ProcessController (144) - String (36)
- Symbol (12)
-
Syslog
:: Logger (12) - Thread (24)
- TracePoint (7)
- Tracer (108)
- UnboundMethod (24)
-
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPServer (36) -
WEBrick
:: HTTPServlet :: ProcHandler (48)
モジュール
- Enumerable (48)
- Etc (48)
- IRB (12)
- JSON (24)
- Kernel (169)
- Marshal (48)
-
MiniTest
:: Assertions (17) - ObjectSpace (48)
- Open3 (48)
- OpenURI (24)
- PTY (12)
- Process (1066)
-
Process
:: GID (132) -
Process
:: Sys (180) -
Process
:: UID (132) -
Profiler
_ _ (6) -
REXML
:: SAX2Listener (12) -
Rake
:: TaskManager (12) - Readline (48)
-
RubyVM
:: AbstractSyntaxTree (10) - Signal (24)
-
WEBrick
:: HTTPAuth (12) - Warning (6)
オブジェクト
- main (24)
キーワード
-
$ ? (12) -
$ CHILD _ STATUS (12) -
$ PROCESS _ ID (12) - & (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (14)
- == (12)
- === (12)
- >> (26)
- BasicAuth (12)
- Binding (12)
-
CLOCK
_ BOOTTIME (12) -
CLOCK
_ BOOTTIME _ ALARM (12) -
CLOCK
_ MONOTONIC (12) -
CLOCK
_ MONOTONIC _ COARSE (12) -
CLOCK
_ MONOTONIC _ FAST (12) -
CLOCK
_ MONOTONIC _ PRECISE (12) -
CLOCK
_ MONOTONIC _ RAW (12) -
CLOCK
_ MONOTONIC _ RAW _ APPROX (12) -
CLOCK
_ PROCESS _ CPUTIME _ ID (12) -
CLOCK
_ PROF (12) -
CLOCK
_ REALTIME (12) -
CLOCK
_ REALTIME _ ALARM (12) -
CLOCK
_ REALTIME _ COARSE (12) -
CLOCK
_ REALTIME _ FAST (12) -
CLOCK
_ REALTIME _ PRECISE (12) -
CLOCK
_ SECOND (12) -
CLOCK
_ THREAD _ CPUTIME _ ID (12) -
CLOCK
_ UPTIME (12) -
CLOCK
_ UPTIME _ FAST (12) -
CLOCK
_ UPTIME _ PRECISE (12) -
CLOCK
_ UPTIME _ RAW (12) -
CLOCK
_ UPTIME _ RAW _ APPROX (12) -
CLOCK
_ VIRTUAL (12) - CommandProcessor (6)
- Context (12)
-
DEFAULT
_ IGNORE _ PROCS (12) - EPROCLIM (12)
- EPROCUNAVAIL (12)
-
FILENAME
_ COMPLETION _ PROC (12) - GID (12)
- HTTPProcessing (8)
- HTTPUnprocessableEntity (12)
-
Init
_ Proc (12) - Inspector (12)
- InstructionSequence (12)
- LocalJumpError (12)
- Marshal フォーマット (12)
- Method (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NoDelegateMethods (6)
-
PRIO
_ PGRP (12) -
PRIO
_ PROCESS (12) -
PRIO
_ USER (12) -
PROFILE
_ PROC (6) - Proc (12)
- ProcHandler (12)
- Process (12)
- ProcessController (6)
-
RLIMIT
_ AS (12) -
RLIMIT
_ CORE (12) -
RLIMIT
_ CPU (12) -
RLIMIT
_ DATA (12) -
RLIMIT
_ FSIZE (12) -
RLIMIT
_ MEMLOCK (12) -
RLIMIT
_ NOFILE (12) -
RLIMIT
_ NPROC (12) -
RLIMIT
_ RSS (12) -
RLIMIT
_ SBSIZE (12) -
RLIMIT
_ STACK (12) -
RLIM
_ INFINITY (12) -
RLIM
_ SAVED _ CUR (12) -
RLIM
_ SAVED _ MAX (12) - Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
-
SC
_ NPROCESSORS _ CONF (12) -
SC
_ NPROCESSORS _ ONLN (12) -
SC
_ THREAD _ PROCESS _ SHARED (12) - Status (12)
- StoreContext (12)
- Sys (12)
- Tms (12)
- UID (12)
-
USERNAME
_ COMPLETION _ PROC (12) -
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - WNOHANG (12)
- WUNTRACED (12)
- [] (36)
- abort (24)
- activate (6)
-
active
_ job? (6) -
active
_ jobs (6) -
active
_ jobs _ exist? (6) -
active
_ process _ controllers (6) -
add
_ delegate _ command _ to _ shell (6) -
add
_ filter (36) -
add
_ final (12) -
add
_ response _ handler (24) -
add
_ schedule (6) -
add
_ trace _ func (12) - after (1)
-
alias
_ command (12) -
alias
_ map (6) - append (6)
- argv0 (12)
- arity (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) - assign (12)
-
at
_ exit (12) - atime (6)
- basename (6)
-
basic
_ auth (12) - before (1)
- binding (12)
-
block
_ output _ synchronize (6) -
block
_ pass (12) - blockdev? (6)
- call (12)
-
call
_ end _ proc (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)
- coredump? (12)
-
count
_ tdata _ objects (12) -
create
_ rule (12) - cstime (12)
- cstime= (12)
- ctime (6)
- curry (46)
- cutime (12)
- cutime= (12)
- 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) -
display
_ process _ id= (12) -
display
_ process _ id? (12) -
do
_ GET (12) -
do
_ POST (12) -
do
_ sort= (12) - drb (12)
- dump (24)
-
each
_ active _ object (6) - echo (6)
- egid (12)
- egid= (12)
- eid (24)
- eid= (24)
- encode (36)
- euid (12)
- euid= (12)
- exec (12)
- executable? (6)
-
executable
_ real? (6) - exist? (6)
- exists? (6)
- exit (12)
- exit! (12)
-
exit
_ value (12) - exited? (12)
- exitstatus (12)
- file? (6)
- find (24)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- fork (24)
- format (12)
- formatter (24)
- formatter= (12)
-
from
_ name (24) - ftype (6)
- genspace (12)
-
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)
- hash (12)
- identical? (6)
- inactivate (6)
- initgroups (12)
- initialize (6)
- inspect (24)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (6) - irb (12)
- issetugid (12)
- jobs (6)
-
jobs
_ exist? (6) - join (6)
- kill (12)
-
kill
_ job (6) - lambda (18)
- lambda? (12)
-
last
_ status (8) - link (6)
- list (12)
- load (24)
- logger (12)
- lstat (6)
- maxgroups (12)
- maxgroups= (12)
-
method
_ added (6) -
method
_ proc (12) - mkdir (6)
-
mount
_ proc (24) - mproc (12)
- mtime (6)
- new (110)
- notify (6)
- nprocessors (12)
- of (22)
- open (6)
-
open
_ uri (24) - out (6)
- owned? (6)
- parameters (43)
- pid (24)
- pipe? (6)
- pipeline (12)
- pp (12)
- ppid (12)
- preprocess (2)
-
proc
_ arity (12) -
proc
_ binding (12) -
proc
_ call (12) -
proc
_ eq (12) -
proc
_ get _ safe _ level (12) -
proc
_ invoke (12) -
proc
_ new (12) -
proc
_ s _ new (12) -
proc
_ save _ safe _ level (12) -
proc
_ set _ safe _ level (12) -
proc
_ to _ proc (12) -
proc
_ to _ s (12) -
proc
_ yield (12) -
process
_ args (13) -
process
_ controller (6) -
process
_ controllers _ exclusive (6) -
processing
_ instruction (12) -
rb
_ catch (12) -
rb
_ exec _ end _ proc (12) -
rb
_ f _ lambda (12) -
rb
_ iter _ break (12) -
rb
_ iterate (12) -
rb
_ mark _ end _ proc (12) -
rb
_ obj _ is _ block (12) -
rb
_ obj _ is _ proc (12) -
rb
_ proc _ exec _ n (1) -
rb
_ proc _ new (12) -
rb
_ protect (12) -
rb
_ rescue (12) -
rb
_ rescue2 (12) -
rb
_ scan _ args (12) -
rb
_ set _ end _ proc (12) -
rb
_ with _ disable _ interrupt (12) -
rb
_ yield _ 0 (12) -
re
_ exchange (24) -
re
_ exchangeable? (24) - readable? (6)
-
readable
_ real? (6) - readlink (6)
- reason (12)
- registerProcedure (12)
- registerProcedure= (12)
- rehash (6)
- rename (6)
-
renegotiation
_ cb (12) -
renegotiation
_ cb= (12) - restore (24)
- rid (24)
- rm (6)
-
rm
_ final (12) - rmdir (6)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
ruby2
_ keywords (6) -
ruby2
_ keywords _ hash? (6) -
run
_ config (6) - send (24)
-
servername
_ cb (12) -
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)
-
shell
/ command-processor (6) -
shell
/ process-controller (6) - shift (9)
-
sid
_ available? (24) - signaled? (12)
- size (18)
- size? (6)
- socket? (6)
-
source
_ location (36) - spawn (12)
- split (6)
-
start
_ job (6) - stat (6)
- status (12)
- sticky? (6)
- stime (12)
- stime= (12)
- stopped? (12)
- stopsig (12)
- success? (12)
- switch (48)
- symlink (6)
- symlink? (6)
- system (6)
- tee (6)
-
terminate
_ job (6) -
terminate
_ process (12) - termsig (12)
- test (6)
- times (12)
-
tmp
_ dh _ callback (12) -
tmp
_ dh _ callback= (12) -
to
_ i (12) -
to
_ proc (64) -
to
_ s (24) -
trace
_ var (36) - transact (6)
- trap (48)
- truncate (6)
- uid (12)
- uid= (12)
-
umethod
_ proc (12) -
unalias
_ command (6) -
undef
_ system _ command (12) -
undefine
_ finalizer (12) - unlink (6)
-
untrace
_ var (12) - utime (18)
- utime= (12)
-
values
_ at (12) -
verify
_ callback (36) -
verify
_ callback= (36) - wait (12)
- wait2 (12)
-
wait
_ all _ jobs _ execution (6) -
wait
_ to _ finish _ all _ process _ controllers (6) - waitall (12)
-
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) - waitpid (12)
- waitpid2 (12)
- warmup (2)
-
webrick
/ httpservlet / prochandler (12) -
when
_ invoked (12) -
world
_ readable? (6) -
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6) - yield (12)
- zero? (6)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- 手続きオブジェクトの挙動の詳細 (12)
検索結果
先頭5件
-
static VALUE proc
_ eq(VALUE self , VALUE other) (26100.0) -
-
static VALUE proc
_ to _ s(VALUE self , VALUE other) (26100.0) -
-
static int proc
_ get _ safe _ level(VALUE data) (26100.0) -
-
static void proc
_ save _ safe _ level(VALUE data) (26100.0) -
-
static void proc
_ set _ safe _ level(VALUE data) (26100.0) -
-
Kernel
. # proc -> Proc (15466.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 (15466.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 (15465.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 (15465.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
# to _ proc -> self (15113.0) -
self を返します。
...self を返します。
//emlist[例][ruby]{
pr = proc {}
p pr == pr.to_proc # => true
//}... -
Proc
# ruby2 _ keywords -> proc (9177.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...Marks the proc as passing keywords through a normal argument splat. This
should only be called on procs that accept an argument splat (`*args`)
but not explicit keywords or a keyword splat. It marks the proc such
that if the proc is called with keyword arguments, the final hash
argument is marked......ds or a keyword splat, the
final element is interpreted as keywords. In other words, keywords will
be passed through the proc to other methods.
This should only be used for procs that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This met......backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the proc responds to this method before calling
it. Also, be aware that if this method is removed, the behavior of the
proc will change so that it does not pass through keywords.
//emlist[][ruby]{
module Mod
fo... -
Proc
# curry -> Proc (9160.0) -
Procをカリー化します
...Procをカリー化します
カリー化したProcはいくつかの引数をとります。十分な数の引数が与えられると、元のProcに引数を渡し
て実行し、結果を返します。引数の個数が足りないときは、部分適用したカリー化Procを返します......た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,......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) #=> wrong number of arguments (given 1, expected 3+)
b = proc { :foo }
p b.curry[] #=> :foo
//}...