3207件ヒット
[3201-3207件を表示]
(0.270秒)
ライブラリ
- ビルトイン (1392)
-
cgi
/ core (12) - csv (252)
- erb (36)
-
io
/ console (12) -
io
/ wait (24) -
irb
/ context (24) -
irb
/ input-method (84) -
net
/ ftp (34) -
net
/ http (175) -
net
/ imap (96) - open-uri (24)
- openssl (84)
- pathname (84)
- pstore (12)
-
rinda
/ rinda (24) -
rinda
/ tuplespace (24) -
rubygems
/ package / tar _ reader (12) -
rubygems
/ package / tar _ reader / entry (96) -
rubygems
/ source _ info _ cache (24) - shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (24) - socket (12)
- stringio (168)
- sync (12)
- thread (34)
- thwait (24)
- win32ole (12)
- zlib (348)
クラス
-
ARGF
. class (216) - CSV (144)
-
CSV
:: Row (24) -
CSV
:: Table (84) - Dir (36)
- ERB (36)
-
Encoding
:: InvalidByteSequenceError (12) - Exception (12)
- File (12)
-
File
:: Stat (48) -
Gem
:: Package :: TarReader (12) -
Gem
:: Package :: TarReader :: Entry (96) -
Gem
:: SourceInfoCache (24) - IO (278)
-
IRB
:: Context (24) -
IRB
:: InputMethod (12) -
IRB
:: ReadlineInputMethod (60) -
IRB
:: StdioInputMethod (12) - Method (14)
- Module (12)
-
Net
:: FTP (24) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (127) -
Net
:: HTTPResponse (48) -
Net
:: IMAP (60) -
Net
:: IMAP :: ContentDisposition (12) -
Net
:: IMAP :: ThreadMember (24) - Object (16)
-
OpenSSL
:: SSL :: SSLSocket (12) - PStore (12)
- Pathname (84)
- Proc (14)
-
Rinda
:: TupleSpace (24) -
Rinda
:: TupleSpaceProxy (24) - Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (24) - Socket (12)
- StringIO (168)
- Thread (332)
-
Thread
:: Backtrace :: Location (84) -
Thread
:: ConditionVariable (36) -
Thread
:: Mutex (60) -
Thread
:: Queue (140) -
Thread
:: SizedQueue (92) - ThreadGroup (48)
- ThreadsWait (24)
- WIN32OLE (12)
-
Zlib
:: GzipReader (264) -
Zlib
:: GzipWriter (84)
モジュール
-
CGI
:: QueryExtension (12) -
OpenSSL
:: Buffering (72) -
OpenURI
:: OpenRead (24) -
Sync
_ m (12)
キーワード
- << (50)
- >> (14)
- [] (12)
- []= (12)
-
abort
_ on _ exception (12) -
absolute
_ path (12) - add (12)
-
add
_ row (12) - alive? (12)
-
all
_ waits (6) -
attr
_ reader (12) - backtrace (12)
-
backtrace
_ locations (36) -
base
_ label (12) - binmode (12)
- binread (12)
- birthtime (12)
- body (12)
- broadcast (12)
- children (12)
- clear (12)
-
client
_ thread (12) -
client
_ thread= (12) - clone (12)
- close (56)
-
close
_ read (36) -
close
_ write (12) - closed? (46)
-
closed
_ read? (12) -
connect
_ nonblock (12) - convert (24)
-
def
_ class (12) - deq (24)
- directory? (12)
- dup (12)
- each (24)
-
each
_ byte (24) -
each
_ line (24) - empty? (38)
- enclose (12)
- enclosed? (12)
- encoding (12)
- enq (23)
- entity (12)
- eof (12)
- eof? (36)
- exit (12)
- expunge (12)
- fetch (8)
-
field
_ size _ limit (12) - fields (12)
- file (12)
- file? (12)
- filename (24)
- filename= (12)
- finished? (6)
- flock (12)
- flush (24)
-
full
_ name (12) - get2 (24)
- getc (36)
- gets (24)
- headers (12)
-
ignore
_ deadlock (4) -
ignore
_ deadlock= (4) - inspect (24)
- join (24)
- key? (12)
- keys (12)
- kill (12)
- label (12)
- length (32)
- line (12)
- lineno (24)
- lineno= (12)
- list (12)
- lock (10)
- locked? (10)
- multipart? (12)
-
next
_ wait (6) -
ole
_ get _ methods (12) - open (24)
-
open
_ timeout (24) - owned? (10)
- param (12)
- path (24)
-
pending
_ interrupt? (12) - pop (24)
- pos (12)
- post2 (24)
- pread (8)
- print (12)
- printf (12)
- priority= (12)
- push (35)
- putc (12)
- puts (24)
- raw (12)
-
read
_ all (24) -
read
_ all _ cache _ data (12) -
read
_ body (12) -
read
_ cache _ data (12) -
read
_ nonblock (48) -
read
_ timeout (24) - readable? (52)
-
readable
_ atfer _ eof? (36) -
readable
_ real? (42) -
readagain
_ bytes (12) - readbyte (12)
- readchar (36)
-
reader
_ header (12) - readline (120)
- readlines (132)
- readlink (30)
- readpartial (84)
- ready? (12)
-
report
_ on _ exception (9) -
request
_ get (24) -
request
_ post (24) - rewind (24)
- run (12)
-
safe
_ level (7) - seek (12)
- seqno (12)
-
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - shift (24)
- signal (12)
- size (32)
-
skip
_ blanks? (12) - sleep (10)
- status (12)
- stop? (12)
-
sync
_ ex _ locker (6) -
sync
_ ex _ locker= (6) - sysread (60)
- tell (12)
- terminate (12)
- thread (12)
-
thread
_ variable? (12) -
thread
_ variable _ get (12) -
thread
_ variable _ set (12) -
to
_ a (36) -
to
_ csv (12) -
to
_ s (24) - transaction (12)
-
try
_ lock (10) -
uid
_ thread (12) - ungetc (24)
- unlock (10)
- unused (12)
-
use
_ readline (12) -
use
_ readline? (12) - value (12)
-
values
_ at (12) - wait (12)
-
wait
_ readable (12) - wakeup (12)
-
world
_ readable? (42) - write (12)
-
write
_ timeout (7) -
yield
_ self (16)
検索結果
-
Proc
# >>(callable) -> Proc (107.0) -
self と引数を合成した Proc を返します。
...self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します......aram 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 を定義したオブジェクトを渡す例][ruby]{
class Wo......rdScanner
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#...