2261件ヒット
[2201-2261件を表示]
(0.111秒)
ライブラリ
- ビルトイン (814)
- abbrev (11)
- benchmark (55)
- bigdecimal (22)
-
bigdecimal
/ math (66) - cmath (240)
- digest (11)
- drb (22)
- erb (33)
- fiddle (11)
- fileutils (143)
- json (44)
- mathn (8)
- objspace (44)
- open3 (154)
- openssl (66)
- readline (11)
- rubygems (55)
- shellwords (44)
-
webrick
/ accesslog (11) -
webrick
/ htmlutils (11) -
webrick
/ httpauth (22) -
webrick
/ httpstatus (77) -
webrick
/ httputils (121) -
win32
/ registry (132) -
win32
/ resolv (11) - zlib (22)
クラス
-
Win32
:: Resolv (11)
モジュール
- Abbrev (11)
- Benchmark (55)
- BigMath (88)
- CMath (240)
- DRb (22)
- Digest (11)
-
ERB
:: DefMethod (11) -
ERB
:: Util (22) - Fiddle (11)
- FileTest (33)
- FileUtils (143)
- Gem (55)
- JSON (44)
- Kernel (209)
- Marshal (44)
- Math (305)
- ObjectSpace (99)
- Open3 (154)
-
OpenSSL
:: ASN1 (33) -
OpenSSL
:: PKCS5 (22) -
OpenSSL
:: Random (11) - Process (55)
-
Process
:: GID (55) -
Process
:: UID (55) - Readline (11)
- Shellwords (44)
- Signal (11)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: HTMLUtils (11) -
WEBrick
:: HTTPAuth (22) -
WEBrick
:: HTTPStatus (77) -
WEBrick
:: HTTPUtils (121) -
Win32
:: Registry :: API (132) - Zlib (22)
キーワード
- CloseKey (11)
- CreateKey (11)
- DeleteKey (11)
- DeleteValue (11)
- E (11)
- EnumKey (11)
- EnumValue (11)
- FlushKey (11)
- GraphicString (22)
- Hash (11)
- OpenKey (11)
- PI (11)
- QueryInfoKey (11)
- QueryValue (11)
- SetValue (11)
-
_ _ method _ _ (11) - abbrev (11)
- acos (17)
- acos! (6)
- acosh (17)
- acosh! (6)
-
adler32
_ combine (11) - asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
- atan (28)
- atan! (6)
- atan2 (17)
- atan2! (6)
- atanh (17)
- atanh! (6)
-
basic
_ auth (11) - benchmark (11)
- bm (11)
- bmbm (11)
- caller (11)
-
caller
_ locations (22) - catch (22)
- cbrt (17)
- cbrt! (6)
-
change
_ privilege (22) - chardev? (11)
- chdir (22)
- check (11)
- chmod (11)
-
chmod
_ R (11) - chomp (11)
- chop (11)
- chown (11)
-
chown
_ R (11) -
clear
_ paths (11) -
client
_ error? (11) -
clock
_ gettime (11) - cos (28)
- cos! (6)
- cosh (17)
- cosh! (6)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) -
crc32
_ combine (11) - daemon (11)
-
def
_ erb _ method (11) - dequote (11)
- detach (11)
- dlopen (11)
- dump (22)
-
each
_ object (44) -
egd
_ bytes (11) - erf (11)
- erfc (11)
- error? (11)
- escape (22)
- escape8bit (11)
-
escape
_ path (11) - exp (28)
- exp! (6)
- format (11)
- frexp (11)
- gamma (11)
- generate (11)
-
get
_ hosts _ path (11) - getpriority (11)
- gsub (11)
- here? (11)
- hexencode (11)
-
html
_ escape (11) - hypot (11)
- info? (11)
- ldexp (11)
- lgamma (11)
- list (11)
- load (11)
-
load
_ mime _ types (11) - log (45)
- log! (12)
- log10 (17)
- log10! (6)
- log2 (17)
- log2! (6)
-
marshal
_ version (11) - measure (11)
-
mime
_ type (11) - mkpath (11)
-
parse
_ header (11) -
parse
_ range _ header (11) - path (11)
-
pbkdf2
_ hmac (11) -
pbkdf2
_ hmac _ sha1 (11) -
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - popen2 (22)
- popen2e (22)
- popen3 (22)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
proxy
_ basic _ auth (11) - putc (11)
- quote (11)
-
re
_ exchange (22) -
re
_ exchangeable? (22) -
reachable
_ objects _ from (11) - readline (11)
- realtime (11)
-
reason
_ phrase (11) - redirect? (11)
-
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) - restore (11)
- rsqrt (4)
-
server
_ error? (11) -
set
_ home (11) -
set
_ paths (11) - setpriority (11)
-
setup
_ params (11) - shellescape (11)
- shelljoin (11)
- shellsplit (11)
- shellwords (11)
- sin (28)
- sin! (6)
- sinh (17)
- sinh! (6)
-
split
_ header _ value (11) - sprintf (11)
- sqrt (32)
- sqrt! (6)
- sub (11)
- success? (11)
- switch (44)
- syscall (11)
- tan (17)
- tan! (6)
- tanh (17)
- tanh! (6)
- thread (11)
- throw (11)
- touch (11)
-
trace
_ var (22) - traverse (11)
- unescape (11)
- unparse (11)
-
untrace
_ var (11) - uptodate? (11)
-
world
_ readable? (11) -
world
_ writable? (11)
検索結果
先頭5件
-
JSON
. # pretty _ unparse(object , options = nil) -> String (7.0) -
Ruby のオブジェクトを JSON 形式の文字列に変換して返します。
...te または、to_hash や to_h メソッドでハッシュに変換可能なオブジェクトを指定できます。
ハッシュを使用する場合指定可能なオプションは JSON.#generate を参照してください。
//emlist[例][ruby]{
require "json"
hash = { "name": "tana......ka", "age": 19 }
puts JSON.generate(hash)
# => {"name":"tanaka","age":19}
puts JSON.pretty_generate(hash)
# => {
# "name": "tanaka",
# "age": 19
# }
puts JSON.pretty_generate(hash, space: "\t")
# => {
# "name": "tanaka",
# "age": 19
# }
//}
@see JSON.#generate... -
JSON
. # unparse(object , state = nil) -> String (7.0) -
与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。
...です。
@param object JSON 形式の文字列に変換するオブジェクトを指定します。
@param state JSON::State または、to_hash や to_h メソッドでハッシュに変換可能なオブジェクトを指定できます。
ハッシュを使用する場合指定可能......ring that is put after, a : or , delimiter (default: '')
: :space_before
a string that is put before a : pair delimiter (default: '')
: :object_nl
a string that is put at the end of a JSON object (default: '')
: :array_nl
a string that is put at the end of a JSON array (default: '')
: :check_c... -
Kernel
. # format(format , *arg) -> String (7.0) -
format 文字列を C 言語の sprintf と同じように解釈し、 引数をフォーマットした文字列を返します。
...me
=== sprintf フォーマット
Ruby の sprintf フォーマットは基本的に C 言語の sprintf(3)
のものと同じです。ただし、short や long などの C 特有の型に対する修飾子が
ないこと、2進数の指示子(%b, %B)が存在すること、sprintf のすべて......す。
以下は sprintf フォーマットの書式です。[] で囲まれた部分は省略可
能であることを示しています。
%[nth$][フラグ][幅][.精度]指示子
%[<name>][フラグ][幅][.精度]指示子
`%' 自身を出力するには `%%' とします。
以下それ......外では f と同じ出力を行います。ただし、小数部の末尾の0は取り除かれ
ます。
a, A は指数表現の16進数("-h.hhh±pd") で数値を出力します。ただし、Float::INFINITY、Float::NAN はそれぞれ 'Inf'、'NaN' になります。詳しくは 40650 を... -
Kernel
. # sprintf(format , *arg) -> String (7.0) -
format 文字列を C 言語の sprintf と同じように解釈し、 引数をフォーマットした文字列を返します。
...me
=== sprintf フォーマット
Ruby の sprintf フォーマットは基本的に C 言語の sprintf(3)
のものと同じです。ただし、short や long などの C 特有の型に対する修飾子が
ないこと、2進数の指示子(%b, %B)が存在すること、sprintf のすべて......す。
以下は sprintf フォーマットの書式です。[] で囲まれた部分は省略可
能であることを示しています。
%[nth$][フラグ][幅][.精度]指示子
%[<name>][フラグ][幅][.精度]指示子
`%' 自身を出力するには `%%' とします。
以下それ......外では f と同じ出力を行います。ただし、小数部の末尾の0は取り除かれ
ます。
a, A は指数表現の16進数("-h.hhh±pd") で数値を出力します。ただし、Float::INFINITY、Float::NAN はそれぞれ 'Inf'、'NaN' になります。詳しくは 40650 を... -
Kernel
. # syscall(num , *arg) -> Integer (7.0) -
numで指定された番号のシステムコールを実行します。 第2引数以降をシステムコールの引数として渡します。
...ールの引数として渡します。
どの数値がどのシステムコールに対応するかは、
syscall(2) や
/usr/include/sys/syscall.h を参照してください。
システムコールの慣習に従い、syscall(2)
が -1 を返す場合には例外 Errno::EXXX が発生します......-1 を返した場合に発生します。
@raise NotImplementedError 実行環境がこのメソッドに対応していないとき発生します。
//emlist[例][ruby]{
syscall 4, 1, "hello\n", 6 # '4' is write(2) on our box
# => hello
//}
@see fiddle, syscall(2freebsd), syscall(2linux)... -
Process
. # clock _ gettime(clock _ id , unit=:float _ second) -> Float | Integer (7.0) -
POSIX の clock_gettime() 関数の時間を返します。
...D 3.0, NetBSD 2.0, OpenBSD 3.4, macOS 10.12
: Process::CLOCK_PROCESS_CPUTIME_ID
SUSv3 to 4, Linux 2.5.63, OpenBSD 5.4, macOS 10.12
: Process::CLOCK_THREAD_CPUTIME_ID
SUSv3 to 4, Linux 2.5.63, FreeBSD 7.1, OpenBSD 5.4, macOS 10.12
: Process::CLOCK_VIRTUAL
FreeBSD 3.0, OpenBSD 2.1
: Process::CLOCK_......義されている clock_gettime を含みます。
SUS では CLOCK_REALTIME は必須ですが、CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID,
CLOCK_THREAD_CPUTIME_ID は任意です。
さらに clock_id はいくつかのシンボルを受け付けます。
それらは clock_gettime() をエミ......れている time() を使います。
精度は1秒です。
CLOCK_MONOTONIC のエミュレーション:
: :MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC
Darwin で利用可能な mach_absolute_time() を使います。
精度は CPU に依存します。
: :TIMES_BASED_CLOCK_MONOTONIC
POSIX で...