ライブラリ
- ビルトイン (2633)
- abbrev (11)
- base64 (66)
- benchmark (55)
- bigdecimal (44)
-
bigdecimal
/ jacobian (33) -
bigdecimal
/ ludcmp (22) -
bigdecimal
/ math (66) -
bigdecimal
/ newton (22) - cmath (240)
- continuation (11)
- digest (11)
-
digest
/ bubblebabble (11) - drb (132)
- erb (55)
- etc (231)
- fiddle (66)
- fileutils (506)
- find (33)
- json (121)
- kconv (143)
- mathn (8)
- nkf (22)
- objspace (110)
- open-uri (16)
- open3 (198)
- openssl (660)
- pp (4)
- profiler (18)
- pty (44)
- readline (11)
- rubygems (88)
- shellwords (44)
- syslog (242)
- timeout (19)
- uri (11)
-
webrick
/ accesslog (33) -
webrick
/ htmlutils (11) -
webrick
/ httpauth (22) -
webrick
/ httpstatus (77) -
webrick
/ httputils (110) -
webrick
/ utils (66) -
win32
/ resolv (22) - zlib (96)
クラス
-
Win32
:: Resolv (22)
モジュール
- Abbrev (11)
- Base64 (66)
- Benchmark (55)
- BigMath (88)
- CMath (240)
- DRb (121)
-
DRb
:: DRbProtocol (11) - Digest (22)
-
ERB
:: DefMethod (11) -
ERB
:: Util (44) - Etc (231)
- Fiddle (66)
- FileTest (292)
- FileUtils (506)
- Find (33)
- Gem (88)
- JSON (121)
- Jacobian (33)
- Kconv (143)
- Kernel (1173)
- LUSolve (22)
- Marshal (44)
- Math (305)
- NKF (22)
- Newton (22)
- ObjectSpace (220)
- Open3 (198)
- OpenSSL (22)
-
OpenSSL
:: ASN1 (517) -
OpenSSL
:: PKCS5 (22) -
OpenSSL
:: Random (99) - PTY (44)
- Process (352)
-
Process
:: GID (110) -
Process
:: Sys (165) -
Process
:: UID (110) -
Profiler
_ _ (18) - Readline (11)
- Shellwords (44)
- Signal (44)
- Syslog (220)
-
Syslog
:: Macros (22) - Timeout (19)
-
WEBrick
:: AccessLog (33) -
WEBrick
:: HTMLUtils (11) -
WEBrick
:: HTTPAuth (22) -
WEBrick
:: HTTPStatus (77) -
WEBrick
:: HTTPUtils (110) -
WEBrick
:: Utils (66) - Zlib (96)
キーワード
- Array (11)
- BMPString (22)
- BigDecimal (22)
- BitString (22)
- Boolean (22)
- Complex (22)
- E (11)
- Enumerated (22)
- Float (11)
- GeneralString (22)
- GeneralizedTime (22)
- GraphicString (22)
- Hash (11)
- IA5String (22)
- ISO64String (22)
- Integer (33)
-
LOG
_ MASK (11) -
LOG
_ UPTO (11) - Null (22)
- NumericString (22)
- ObjectId (22)
- OctetString (22)
- PI (11)
- PrintableString (22)
- Rational (11)
- Sequence (22)
- Set (22)
- String (11)
- T61String (22)
- URI (11)
- UTCTime (22)
- UTF8String (22)
- UniversalString (22)
- VideotexString (22)
-
_ _ callee _ _ (11) -
_ _ dir _ _ (11) -
_ _ method _ _ (11) -
_ id2ref (11) - ` (11)
- abbrev (11)
- abort (22)
- acos (17)
- acos! (6)
- acosh (17)
- acosh! (6)
-
add
_ protocol (11) - adler32 (15)
-
adler32
_ combine (11) - alert (11)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) - argv0 (11)
- asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
-
at
_ exit (11) - atan (28)
- atan! (6)
- atan2 (17)
- atan2! (6)
- atanh (17)
- atanh! (6)
- autoload (11)
- autoload? (11)
-
basic
_ auth (11) - benchmark (11)
- binding (11)
-
block
_ given? (11) - blockdev? (11)
- bm (11)
- bmbm (11)
- bubblebabble (11)
- callcc (11)
- caller (33)
-
caller
_ locations (22) - capture2 (11)
- capture2e (11)
- capture3 (11)
- catch (22)
- cbrt (17)
- cbrt! (6)
- cd (22)
-
change
_ privilege (22) - chardev? (11)
- chdir (22)
- chmod (11)
-
chmod
_ R (11) - chomp (11)
- chop (11)
- chown (11)
-
chown
_ R (11) -
clear
_ paths (11) -
client
_ error? (11) -
clock
_ gettime (11) - close (11)
- cmp (11)
-
compare
_ file (11) -
compare
_ stream (11) - config (11)
- confstr (11)
- copy (11)
-
copy
_ entry (11) -
copy
_ file (11) -
copy
_ stream (11) - cos (28)
- cos! (6)
- cosh (17)
- cosh! (6)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - cp (11)
-
cp
_ r (11) - crc32 (15)
-
crc32
_ combine (11) -
crc
_ table (11) -
create
_ listeners (11) - crit (11)
-
current
_ server (11) - daemon (11)
- debug (22)
- decode (11)
- decode64 (11)
-
decode
_ all (11) -
def
_ erb _ method (11) -
define
_ finalizer (22) - deflate (11)
- dequote (11)
- detach (11)
- dfdxi (11)
- dir (11)
- directory? (11)
- dlopen (11)
- dlunwrap (11)
- dlwrap (11)
- dump (33)
-
each
_ object (44) - egd (11)
-
egd
_ bytes (11) - egid (11)
- eid (22)
- emerg (11)
- empty? (8)
- encode64 (11)
- endgrent (11)
- endpwent (11)
- erf (11)
- erfc (11)
- err (11)
- error? (11)
- errors (11)
- escape (33)
- escape8bit (11)
-
escape
_ path (11) - euid (11)
- eval (22)
- exec (44)
- executable? (11)
-
executable
_ real? (11) - exist? (11)
- exists? (9)
- exit (11)
- exit! (11)
- exp (28)
- exp! (6)
- facility (11)
- fail (33)
-
fast
_ generate (11) -
fast
_ unparse (11) - file? (11)
- find (22)
- fork (22)
- format (22)
- free (11)
- frexp (11)
-
from
_ name (22) - front (11)
- gamma (11)
-
garbage
_ collect (11) - generate (11)
-
get
_ hosts _ path (11) -
get
_ resolv _ info (11) - getegid (11)
- geteuid (11)
- getgid (11)
- getgrent (11)
- getgrgid (11)
- getgrnam (11)
- getlogin (11)
- getpgid (11)
- getpgrp (11)
- getpriority (11)
- getpty (22)
- getpwent (11)
- getpwnam (11)
- getpwuid (11)
- getrlimit (11)
- gets (11)
- getservername (11)
- getsid (11)
- getuid (11)
- getwd (11)
- gid (11)
-
global
_ variables (11) -
grant
_ privilege (22) - group (22)
- groups (11)
- grpowned? (11)
- gsub (33)
- guess (22)
- h (11)
- here? (11)
- hexencode (11)
-
html
_ escape (11) - hypot (11)
- ident (11)
- identical? (22)
- inflate (11)
- info (11)
- info? (11)
- initgroups (11)
- install (11)
-
install
_ acl (11) -
install
_ id _ conv (11) - instance (11)
- isEqual (11)
- iseuc (11)
- isjis (11)
- issetugid (11)
- issjis (11)
- isutf8 (11)
- iterator? (11)
- jacobian (11)
- kconv (11)
- kill (11)
- lambda (17)
- ldexp (11)
- lgamma (11)
- link (11)
- list (11)
- ln (11)
-
ln
_ s (11) -
ln
_ sf (11) - load (33)
-
load
_ mime _ types (11) -
load
_ random _ file (11) -
local
_ variables (11) - log (56)
- log! (12)
- log10 (17)
- log10! (6)
- log2 (17)
- log2! (6)
- loop (22)
- ludecomp (11)
- lusolve (11)
- makedirs (11)
- malloc (11)
-
marshal
_ version (11) - mask (11)
- maxgroups (11)
- measure (11)
-
memsize
_ of (11) -
memsize
_ of _ all (11) -
mime
_ type (11) - mkdir (11)
-
mkdir
_ p (11) - mkpath (11)
- move (11)
- mv (11)
- nkf (11)
- nlsolve (11)
- norm (11)
- notice (11)
- nprocessors (11)
- open (60)
- open! (11)
- opened? (11)
- owned? (11)
- p (11)
- parse (11)
- parse! (11)
-
parse
_ header (11) - passwd (22)
- path (11)
-
pbkdf2
_ hmac (11) -
pbkdf2
_ hmac _ sha1 (11) - pid (11)
- pipe? (11)
- pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - popen2 (22)
- popen2e (22)
- popen3 (22)
- pp (11)
- ppid (11)
- prefix (11)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
primary
_ server (11) - print (11)
-
print
_ profile (6) - printf (22)
- proc (18)
-
proxy
_ basic _ auth (11) - prune (11)
-
pseudo
_ bytes (11) - putc (11)
- puts (11)
- pwd (11)
- quote (11)
- raise (33)
- rand (22)
-
random
_ add (11) -
random
_ bytes (11) -
random
_ string (11) -
re
_ exchange (22) -
re
_ exchangeable? (22) -
reachable
_ objects _ from (11) - readable? (11)
-
readable
_ real? (11) - readline (22)
- readlines (11)
- realloc (11)
- realtime (11)
-
reason
_ phrase (11) - redirect? (11)
- remove (11)
-
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) - reopen (11)
- require (11)
-
require
_ relative (11) - restore (22)
- rid (22)
- rm (11)
-
rm
_ f (11) -
rm
_ r (11) -
rm
_ rf (11) - rmdir (11)
- rmtree (11)
- rsqrt (4)
- ruby (11)
-
safe
_ unlink (11) - seed (11)
- select (11)
-
server
_ error? (11) -
set
_ close _ on _ exec (11) -
set
_ non _ blocking (11) -
set
_ trace _ func (11) - setegid (11)
- seteuid (11)
- setgid (11)
- setgid? (11)
- setgrent (11)
- setpgid (11)
- setpgrp (11)
- setpriority (11)
- setproctitle (11)
- setpwent (11)
- setregid (11)
- setresgid (11)
- setresuid (11)
- setreuid (11)
- setrgid (11)
- setrlimit (22)
- setruid (11)
- setsid (11)
- setuid (11)
- setuid? (11)
-
setup
_ params (11) - shellescape (11)
- shelljoin (11)
- shellsplit (11)
- shellwords (11)
-
sid
_ available? (22) - signame (11)
- sin (28)
- sin! (6)
- sinh (17)
- sinh! (6)
- size (11)
- size? (11)
- sleep (22)
- socket? (11)
-
source
_ index (11) - spawn (66)
-
split
_ header _ value (11) - sprintf (11)
- sqrt (32)
- sqrt! (6)
- srand (22)
-
start
_ profile (6) -
start
_ service (11) - status? (11)
- sticky? (11)
-
stop
_ profile (6) -
stop
_ service (11) -
strict
_ decode64 (11) -
strict
_ encode64 (11) - su (11)
- sub (22)
- success? (11)
- switch (44)
- symlink (11)
- symlink? (11)
- syscall (11)
- sysconf (11)
- sysconfdir (11)
- system (44)
- systmpdir (11)
- tan (17)
- tan! (6)
- tanh (17)
- tanh! (6)
- test (22)
- thread (11)
- throw (11)
- timeout (19)
- times (11)
- toeuc (11)
- tojis (11)
- tolocale (11)
- tosjis (11)
- touch (11)
- toutf16 (11)
- toutf32 (11)
- toutf8 (11)
-
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) -
trace
_ var (33) - trap (44)
- traverse (11)
- u (11)
- uid (11)
- uname (11)
-
undefine
_ finalizer (11) - unescape (11)
- unparse (11)
-
untrace
_ var (11) - uptodate? (11)
- uri (11)
-
url
_ encode (11) -
urlsafe
_ decode64 (11) -
urlsafe
_ encode64 (11) - wait (11)
- wait2 (11)
- waitall (11)
- waitpid (11)
- waitpid2 (11)
- warn (11)
- warning (11)
-
win
_ platform? (11) -
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) -
write
_ random _ file (11) - zero? (11)
-
zlib
_ version (11)
検索結果
先頭5件
-
Kernel
. # format(format , *arg) -> String (221.0) -
format 文字列を C 言語の sprintf と同じように解釈し、 引数をフォーマットした文字列を返します。
...するには `%%' とします。
以下それぞれの要素に関して説明します。
=== フラグ
フラグには #, +, ' '(スペース), -, 0 の5種類があります。
: #
2進、8進、16進の指示子(b, B, o, x, X) ではそれぞれプレフィック
スとして "0b", "0B",......ては、負数に対して "-"
を付加することを示します。
//emlist[][ruby]{
p sprintf("%d", 1) #=> "1"
p sprintf("%+d", 1) #=> "+1"
p sprintf("%x", -1) #=> "..f" # ".." は無限に f が続くことを表している
p sprintf("%+x", -1) #=> "-1"
//}
: ' '(スペース)
`+'......]{
p sprintf("%d", 1) #=> "1"
p sprintf("%+d", 1) #=> "+1"
p sprintf("% d", 1) #=> " 1"
p sprintf("%x", -1) #=> "..f"
p sprintf("% x", 1) #=> " 1"
p sprintf("% x", -1) #=> "-1"
//}
: -
出力を左詰めにします。幅の指定がなければ
意味がありません。
: 0
出力... -
Kernel
. # sprintf(format , *arg) -> String (221.0) -
format 文字列を C 言語の sprintf と同じように解釈し、 引数をフォーマットした文字列を返します。
...するには `%%' とします。
以下それぞれの要素に関して説明します。
=== フラグ
フラグには #, +, ' '(スペース), -, 0 の5種類があります。
: #
2進、8進、16進の指示子(b, B, o, x, X) ではそれぞれプレフィック
スとして "0b", "0B",......ては、負数に対して "-"
を付加することを示します。
//emlist[][ruby]{
p sprintf("%d", 1) #=> "1"
p sprintf("%+d", 1) #=> "+1"
p sprintf("%x", -1) #=> "..f" # ".." は無限に f が続くことを表している
p sprintf("%+x", -1) #=> "-1"
//}
: ' '(スペース)
`+'......]{
p sprintf("%d", 1) #=> "1"
p sprintf("%+d", 1) #=> "+1"
p sprintf("% d", 1) #=> " 1"
p sprintf("%x", -1) #=> "..f"
p sprintf("% x", 1) #=> " 1"
p sprintf("% x", -1) #=> "-1"
//}
: -
出力を左詰めにします。幅の指定がなければ
意味がありません。
: 0
出力... -
Math
. # cbrt(x) -> Float (215.0) -
x の立方根(cubic root)を返します。
...uby]{
-9.upto(9) {|x|
p [x, Math.cbrt(x), Math.cbrt(x)**3]
}
# => [-9, -2.0800838230519, -9.0]
# [-8, -2.0, -8.0]
# [-7, -1.91293118277239, -7.0]
# [-6, -1.81712059283214, -6.0]
# [-5, -1.7099759466767, -5.0]
# [-4, -1.5874010519682, -4.0]
# [-3, -1.44224957030741, -3.0]
# [-2, -1.25......992104989487, -2.0]
# [-1, -1.0, -1.0]
# [0, 0.0, 0.0]
# [1, 1.0, 1.0]
# [2, 1.25992104989487, 2.0]
# [3, 1.44224957030741, 3.0]
# [4, 1.5874010519682, 4.0]
# [5, 1.7099759466767, 5.0]
# [6, 1.81712059283214, 6.0]
# [7, 1.91293118277239, 7.0]
# [8, 2.0, 8.0]
# [9, 2.08008382305... -
OpenSSL
:: ASN1 . # BMPString(value) -> OpenSSL :: ASN1 :: BMPString -> OpenSSL :: ASN1 :: BMPString (201.0) -
ASN.1 の BMPString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の BMPString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::BMPString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # BitString(value) -> OpenSSL :: ASN1 :: BitString -> OpenSSL :: ASN1 :: BitString (201.0) -
ASN.1 の BitString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の BitString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::BitString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # GeneralString(value) -> OpenSSL :: ASN1 :: GeneralString -> OpenSSL :: ASN1 :: GeneralString (201.0) -
ASN.1 の GeneralString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GeneralString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # GeneralizedTime(value) -> OpenSSL :: ASN1 :: GeneralizedTime -> OpenSSL :: ASN1 :: GeneralizedTime (201.0) -
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralizedTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # GraphicString(value) -> OpenSSL :: ASN1 :: GraphicString -> OpenSSL :: ASN1 :: GraphicString (201.0) -
ASN.1 の GraphicString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GraphicString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GraphicString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # IA5String(value) -> OpenSSL :: ASN1 :: IA5String -> OpenSSL :: ASN1 :: IA5String (201.0) -
ASN.1 の IA5String 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の IA5String 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::IA5String.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # ISO64String(value) -> OpenSSL :: ASN1 :: ISO64String -> OpenSSL :: ASN1 :: ISO64String (201.0) -
ASN.1 の ISO64String 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の ISO64String 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::ISO64String.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)