別のキーワード
ライブラリ
- ビルトイン (2807)
- bigdecimal (77)
-
bigdecimal
/ ludcmp (11) -
bigdecimal
/ newton (11) - csv (11)
- etc (22)
- fiddle (308)
-
fiddle
/ import (88) -
io
/ console (11) - ipaddr (11)
-
irb
/ context (11) -
irb
/ output-method (33) - json (11)
- logger (12)
- matrix (77)
- mkmf (66)
-
net
/ ftp (11) -
net
/ http (22) -
net
/ imap (55) -
net
/ telnet (2) - objspace (33)
- openssl (242)
- optparse (96)
- pathname (55)
- pp (22)
- prettyprint (110)
- prime (88)
- profiler (6)
- pty (22)
- rake (11)
- readline (33)
- resolv-replace (33)
-
rexml
/ document (11) -
ripper
/ lexer (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ package / tar _ writer (22) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ requirement (11) -
rubygems
/ user _ interaction (143) - securerandom (11)
- set (33)
- shell (60)
-
shell
/ command-processor (54) -
shell
/ filter (54) -
shell
/ process-controller (12) -
shell
/ system-command (6) - socket (176)
- stringio (121)
- strscan (66)
- syslog (33)
- timeout (19)
-
webrick
/ httpresponse (11) -
webrick
/ httpservlet / abstract (66) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httpversion (22) -
webrick
/ log (11) - win32ole (55)
- zlib (96)
クラス
-
ARGF
. class (66) - Array (563)
- BasicSocket (88)
- BigDecimal (77)
- Bignum (3)
-
CSV
:: Row (11) -
Fiddle
:: Function (22) -
Fiddle
:: Handle (44) -
Fiddle
:: Pointer (209) - File (139)
-
File
:: Stat (11) - Fixnum (3)
- Float (51)
-
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: Package :: TarWriter :: BoundedStream (11) -
Gem
:: Package :: TarWriter :: RestrictedStream (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: Requirement (11) -
Gem
:: StreamUI (11) - IO (304)
- IPAddr (11)
-
IRB
:: Context (11) -
IRB
:: OutputMethod (22) -
IRB
:: StdioOutputMethod (11) - Integer (548)
- Logger (11)
-
Logger
:: Application (1) - MatchData (48)
- Matrix (77)
- Module (16)
- Mutex (2)
-
Net
:: FTP (11) -
Net
:: HTTP (22) -
Net
:: IMAP (55) -
Net
:: Telnet (2) - Numeric (19)
- Object (33)
-
OpenSSL
:: ASN1 :: Integer (22) -
OpenSSL
:: ASN1 :: PrintableString (22) -
OpenSSL
:: BN (22) -
OpenSSL
:: OCSP :: BasicResponse (11) -
OpenSSL
:: OCSP :: Request (11) -
OpenSSL
:: PKey :: EC :: Group (11) -
OpenSSL
:: PKey :: EC :: Point (33) -
OpenSSL
:: SSL :: SSLSocket (11) - OptionParser (96)
- Pathname (55)
- PrettyPrint (110)
- Prime (44)
-
Process
:: Status (22) -
REXML
:: Elements (11) - Random (77)
- Range (66)
- Rational (55)
- Regexp (11)
- Ripper (11)
- RubyVM (11)
- Set (33)
- Shell (60)
-
Shell
:: CommandProcessor (54) -
Shell
:: Filter (54) -
Shell
:: ProcessController (12) -
Shell
:: SystemCommand (6) - SignalException (33)
- Socket (11)
-
Socket
:: AncillaryData (11) -
Socket
:: Option (22) - String (114)
- StringIO (121)
- StringScanner (66)
- Symbol (14)
- Thread (44)
-
Thread
:: Mutex (9) - TracePoint (28)
- UDPSocket (66)
- UNIXSocket (11)
-
WEBrick
:: BasicLog (11) -
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (66) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WEBrick
:: HTTPVersion (22) - WIN32OLE (33)
-
WIN32OLE
_ METHOD (22) -
Zlib
:: GzipWriter (44)
モジュール
- Enumerable (55)
- Etc (11)
- Fiddle (33)
-
Fiddle
:: Importer (88) - FileTest (33)
- GC (11)
-
Gem
:: DefaultUserInteraction (44) -
Gem
:: UserInteraction (88) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) - Kernel (297)
- LUSolve (11)
- Math (22)
- Newton (11)
- ObjectSpace (55)
-
OpenSSL
:: ASN1 (44) -
OpenSSL
:: Buffering (44) -
OpenSSL
:: SSL :: SocketForwarder (11) - PTY (22)
- Process (143)
-
Process
:: GID (33) -
Process
:: UID (33) -
Profiler
_ _ (6) -
Rake
:: TaskManager (11) - Readline (11)
- SecureRandom (11)
- Signal (22)
- Syslog (11)
-
Syslog
:: Macros (22) - Timeout (19)
- Zlib (52)
オブジェクト
-
Readline
:: HISTORY (22)
キーワード
- % (22)
- & (22)
- * (33)
- ** (11)
- + (22)
- - (22)
-
/ (10) - < (11)
- << (22)
- <= (11)
- <=> (55)
- == (22)
- === (11)
- =~ (33)
- > (11)
- >= (11)
- >> (22)
-
DEFAULT
_ PARAMS (11) - Integer (33)
-
LOG
_ MASK (11) -
LOG
_ UPTO (11) - PrintableString (22)
-
RSTRING
_ LENINT (11) - [] (127)
- []= (66)
- ^ (11)
- adler32 (15)
-
adler32
_ combine (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) - allbits? (7)
-
allocation
_ sourceline (11) - anybits? (7)
- ask (11)
-
ask
_ yes _ no (11) - at (11)
- begin (22)
- bind (22)
- binwrite (11)
- breakable (22)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
- call (11)
- ceil (41)
- ceildiv (2)
-
change
_ privilege (22) -
check
_ nonce (11) -
check
_ sizeof (22) - chmod (40)
-
choose
_ from _ list (11) - chown (40)
- chr (22)
-
clock
_ gettime (11) - cofactor (11)
-
cofactor
_ expansion (11) - combination (22)
- connect (11)
-
const
_ source _ location (5) -
content
_ length (11) -
copy
_ nonce (11) -
copy
_ stream (22) - count (77)
- crc32 (15)
-
crc32
_ combine (11) -
create
_ value (11) - cycle (22)
- delete (29)
-
delete
_ at (11) - digits (22)
- disjoint? (11)
- div (22)
- divmod (17)
- dlwrap (11)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - downto (22)
-
each
_ object (22) -
each
_ prime (22) - end (22)
- eql? (11)
- exist? (11)
- extern (11)
- fcntl (22)
- fdiv (11)
- fetch (33)
-
fetch
_ size (11) -
find
_ index (66) - first (44)
- flatten (11)
- flatten! (11)
- floor (49)
- format (22)
- free= (11)
- frexp (11)
-
from
_ name (22) -
from
_ prime _ division (11) -
get
_ print (22) - getbyte (11)
- getpgid (11)
- getpriority (11)
- getpty (11)
- getrlimit (11)
- getservbyname (11)
- getsid (11)
- getsockopt (11)
-
grant
_ privilege (22) - group (11)
-
handle
_ interrupt (11) -
ignore
_ sigint= (11) -
import
_ symbol (11) - index (77)
- initgroups (11)
- insert (11)
- inspect (11)
-
int
_ from _ prime _ division (22) - intern (11)
- intersect? (11)
- intersection (16)
- ioctl (11)
- kill (23)
-
kill
_ job (6) -
laplace
_ expansion (11) - last (44)
- lchmod (22)
- lchown (22)
- level (11)
- lex (11)
- lgamma (11)
- limit (11)
- ludecomp (11)
- lutime (7)
- major (11)
- malloc (22)
- mask (11)
- match (3)
- match? (11)
-
max
_ age (11) - maxgroups (11)
-
memsize
_ of (11) -
memsize
_ of _ all (11) - minor (11)
- mode (22)
- modulo (11)
- nest (11)
- new (209)
- nlsolve (11)
- nobits? (7)
- offset (22)
-
ole
_ free (11) -
ole
_ query _ interface (11) -
ole
_ reference _ count (11) - open (22)
- order (32)
- order! (16)
- pack (19)
- parameters (6)
- parse (16)
- parse! (8)
- pathconf (11)
-
pending
_ interrupt? (22) - permutation (22)
- permute (16)
- permute! (8)
- pipe (88)
-
point
_ conversion _ form= (11) - pointer= (11)
- pop (22)
- pos= (11)
- pow (22)
-
prepare
_ range (11) -
pretty
_ print (33) -
pretty
_ print _ cycle (11) -
prime
_ division (33) - print (101)
-
print
_ dependencies (11) -
print
_ profile (6) - printf (77)
- printn (11)
- priority (11)
-
public
_ method (11) - putc (22)
- pwrite (7)
- rand (77)
-
random
_ number (11) - rationalize (22)
- raw (11)
-
rb
_ time _ timespec _ new (9) - readline (11)
- realloc (11)
-
recv
_ io (11) - recvmsg (11)
-
recvmsg
_ nonblock (11) - remainder (11)
-
repeated
_ combination (22) -
repeated
_ permutation (22) - rindex (33)
- rm (18)
- rotate (11)
- rotate! (11)
- round (52)
- sample (44)
- say (11)
- search (11)
- send (55)
- sendmsg (11)
-
sendmsg
_ nonblock (11) -
set
_ encoding (99) -
set
_ log (1) - setbyte (11)
- setsockopt (22)
- sfork (6)
- shift (22)
-
singleline
_ format (11) - size (51)
- size= (11)
- size? (40)
-
size
_ opt _ params (11) -
size
_ params (11) - sizeof (11)
- skip (11)
-
skip
_ until (11) - sleep (33)
- sort (11)
- spawn (66)
- sprintf (11)
- sqrt (7)
- srand (44)
- stat (11)
- status (11)
- struct (11)
- sum (11)
- sym (11)
- syscall (11)
- sysconf (11)
- sysopen (11)
- sysseek (11)
- syswrite (33)
-
terminate
_ interaction (22) - test (29)
- text (22)
- timeout (19)
-
to
_ i (30) -
to
_ json (11) -
to
_ ptr (11) -
to
_ s (33) -
to
_ str (22) - trace (11)
- trap (22)
- truncate (52)
-
try
_ constant (22) -
try
_ convert (3) -
try
_ link (22) - ui= (22)
-
uid
_ search (11) -
uid
_ sort (11) - umask (22)
- ungetc (11)
- union (11)
- unlink (11)
- unpack (11)
- upto (22)
-
use
_ ui (22) - utime (40)
- value (11)
- version (11)
- wait (11)
- wait2 (11)
- waitpid (11)
- waitpid2 (11)
-
world
_ readable? (22) - write (99)
-
write
_ nonblock (33) - | (11)
検索結果
先頭5件
-
Kernel
. # printf(port , format , *arg) -> nil (6118.0) -
C 言語の printf と同じように、format に従い引数を文字列に変 換して port に出力します。
...C 言語の printf と同じように、format に従い引数を文字列に変
換して port に出力します。
port を省略した場合は標準出力 $stdout に出力します。
引数を 1 つも指定しなければ何もしません。
Ruby における format 文字列の拡張......については
Kernel.#sprintfの項を参照してください。
@param port 出力先になるIO のサブクラスのインスタンスです。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。
@raise ArgumentError port を指定したの......uby]{
printf("calculate%3s%-6s%.15f", 'PI', '...', Math::PI)
#=> calculate PI... 3.141592653589793
printf("%d %04x", 123, 123) #=> "123 007b"
printf("%08b '%4s'", 123, 123) #=> "01111011 ' 123'"
printf("%1$*2$s %2$d %1$s", "hello", 8) #=> " hello 8 hello"
printf("%1$*... -
ARGF
. class # printf(format , *arg) -> nil (6112.0) -
C 言語の printf と同じように、format に従い引数を 文字列に変換して処理対象のファイルに出力します。
...printf と同じように、format に従い引数を
文字列に変換して処理対象のファイルに出力します。
c:ARGF#inplace時にのみ使用できます。
また $stdout への代入の影響を受けません。
それ以外は出力先を指定しない形式の Kernel.#printf......と同じです。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。... -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (6112.0) -
依存関係を表す文字列を返します。
...依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。... -
IO
# printf(format , *arg) -> nil (6112.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、self に出力します。
...の printf と同じように、format に従い引数
を文字列に変換して、self に出力します。
第一引数に IO を指定できないこと、引数を省略できないことを除けば Kernel.#printf と同じです。
@param format Kernel.#printf と同じです。print_form......at を参照してください。
@param arg Kernel.#printf と同じです。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
@see Kernel.#printf... -
OpenSSL
:: Buffering # printf(format , *args) -> nil (6112.0) -
format に従い引数 args を文字列に変換して 出力します。
...format に従い引数 args を文字列に変換して
出力します。
IO#printf と同様です。
@param format 出力フォーマット文字列
@param arg 出力するオブジェクト
@see Kernel.#printf... -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (6112.0) -
タスクを検索します。
...て返します。
@param task_class タスクのクラスを指定します。
@param task_name タスクの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.intern(Rake::Task, "test_r......ake_app") # => <Rake::Task test_rake_app => []>
task.application.intern(Rake::Task, "sample_task") # => <Rake::Task sample_task => []>
end
//}... -
StringIO
# printf(format , *obj) -> nil (6112.0) -
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
...マットに従い各引数 obj を文字列に変換して、自身に出力します。
@param format 文字列のフォーマットを指定します。Kernel.#format を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き......込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.printf("%c%c%c", 97, 98, 99)
a.string #=> "abc"
//}... -
Zlib
:: GzipWriter # printf(format , *args) -> nil (6112.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、自身に出力します。
...C 言語の printf と同じように、format に従い引数
を文字列に変換して、自身に出力します。
@param format フォーマット文字列を指定します。print_format を参照してください。
@param args フォーマットされるオブジェクトを指定し......。
require 'zlib'
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.printf("\n%9s", "bar")
}
fr = File.open(filename)
Zlib::GzipReader.wrap(fr){|gz|
puts gz.read
}
#=> bar
@see IO#printf, Kernel.#printf... -
ARGF
. class # print(*arg) -> nil (6106.0) -
引数を順に処理対象のファイルに出力します。
...引数を順に処理対象のファイルに出力します。
c:ARGF#inplace時にのみ使用できます。
また $stdout への代入の影響を受けません。
それ以外は Kernel.#print と同じです。
@param arg 出力するオブジェクトを任意個指定します。... -
Array
# intersection(*other _ arrays) -> Array (6106.0) -
自身と引数に渡された配列の共通要素を新しい配列として返します。 要素が重複する場合は、そのうちの1つのみを返します。 要素の順序は自身の順序を維持します。
...します。
要素が重複する場合は、そのうちの1つのみを返します。
要素の順序は自身の順序を維持します。
@param other_arrays 自身と共通要素を取りたい配列を指定します。
配列以外のオブジェクトを指定した......た場合に発生します。
intersectionはObject#hashとObject#eql?を使って比較を行います。
//emlist[例][ruby]{
[1, 1, 3, 5].intersection([3, 2, 1]) # => [1, 3]
["a", "b", "z"].intersection(["a", "b", "c"], ["b"]) # => ["b"]
["a"].intersection......# => ["a"]
//}
@see Set#intersection, Array#&... -
Gem
:: Requirement # pretty _ print(pp) -> String (6106.0) -
わかりやすい形で、条件を表す文字列を返します。 pp メソッドで出力する際に、内部で用いられます。
...わかりやすい形で、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
require 'pp'
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requir......わかりやすい形で、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requirement.new(["<...