ライブラリ
- ビルトイン (792)
- bigdecimal (48)
-
bigdecimal
/ ludcmp (12) -
bigdecimal
/ newton (12) - etc (24)
- fiddle (24)
- mathn (4)
- objspace (36)
- openssl (36)
- pty (48)
- syslog (84)
- zlib (41)
モジュール
- BigMath (24)
- Etc (24)
- Fiddle (24)
- Kernel (228)
- LUSolve (12)
- Math (4)
- Newton (12)
- ObjectSpace (84)
-
OpenSSL
:: ASN1 (36) - PTY (48)
- Process (276)
-
Process
:: GID (108) -
Process
:: Sys (48) -
Process
:: UID (108) - Syslog (60)
-
Syslog
:: Macros (24) - Zlib (41)
キーワード
- BigDecimal (24)
-
LOG
_ MASK (12) -
LOG
_ UPTO (12) - Rational (12)
-
adler32
_ combine (12) -
allocation
_ sourceline (12) -
change
_ privilege (24) -
clock
_ gettime (12) - crc32 (17)
-
crc32
_ combine (12) - decode (12)
-
each
_ object (48) - egid (12)
- eid (24)
- eid= (24)
- euid (12)
- exp (12)
- facility (12)
- format (12)
-
from
_ name (24) - getegid (12)
- geteuid (12)
- getgid (12)
- getpgid (12)
- getpgrp (12)
- getpriority (12)
- getpty (24)
- getrlimit (12)
- getsid (12)
- getuid (12)
- gid (12)
-
grant
_ privilege (24) - groups (12)
- ident (12)
- initgroups (12)
- kill (12)
- log (12)
- ludecomp (12)
- malloc (12)
- mask (12)
- mask= (12)
- maxgroups (12)
- maxgroups= (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - nlsolve (12)
- nprocessors (12)
- pid (12)
- ppid (12)
- putc (12)
- rand (24)
-
re
_ exchange (24) - realloc (12)
- rid (24)
- rsqrt (4)
- setsid (12)
- sleep (12)
- spawn (72)
- sprintf (12)
- srand (24)
- switch (48)
- syscall (12)
- sysconf (12)
- test (24)
- uid (12)
- wait (12)
- wait2 (12)
- waitall (12)
- waitpid (12)
- waitpid2 (12)
検索結果
先頭5件
-
Kernel
. # Integer(arg , base = 0 , exception: true) -> Integer | nil (18503.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...プリフィクスは、0b
(2 進数)、0 (8 進数)、0o (8 進数)、0d (10 進数)、0x (16 進
数) です。
@param exception false を指定すると、変換できなかった場合、
例外を発生する代わりに nil を返します。
@raise A......数(Integerのサブクラス)を返さなかった場合に発生します。
@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert......nil into Integer (TypeError)
p Integer(Object.new) # cannot convert Object into Integer (TypeError)
p Integer("10") #=> 10
p Integer("10", 2) #=> 2
p Integer("0d10") #=> 10
p Integer("010") #=> 8
p Integer("0o10") #=> 8
p Integer("0x10") #=> 16
p Integer("0b10") #=> 2... -
Kernel
. # Integer(arg , base = 0) -> Integer (18403.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...数(Integerのサブクラス)を返さなかった場合に発生します。
@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert......nil into Integer (TypeError)
p Integer(Object.new) # cannot convert Object into Integer (TypeError)
p Integer("10") #=> 10
p Integer("10", 2) #=> 2
p Integer("0d10") #=> 10
p Integer("010") #=> 8
p Integer("0o10") #=> 8
p Integer("0x10") #=> 16
p Integer("0b10") #=> 2......れる
p Integer("1\n0") # `Integer': invalid value for Integer: "1\n0" (ArgumentError)
p Integer("hoge") # `Integer': invalid value for Integer: "hoge" (ArgumentError)
p Integer("") # `Integer': invalid value for Integer: "" (ArgumentError)
//}
@see String#hex,String#oct,String#to_... -
OpenSSL
:: ASN1 . # Integer(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: Integer (18333.0) -
ASN.1 の Integer 型の値を表現する Ruby のオブジェクトを 生成します。
...の Integer 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::Integer.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(OpenSSL::BNのインスタンス)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT......もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
OpenSSL
:: ASN1 . # Integer(value) -> OpenSSL :: ASN1 :: Integer (18233.0) -
ASN.1 の Integer 型の値を表現する Ruby のオブジェクトを 生成します。
...の Integer 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::Integer.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(OpenSSL::BNのインスタンス)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT......もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
ObjectSpace
. # each _ object {|object| . . . } -> Integer (9257.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......ブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります......uby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"
# => "scope"
# => "scopes"
# =>... -
ObjectSpace
. # each _ object(klass) {|object| . . . } -> Integer (9257.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......ブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります......uby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"
# => "scope"
# => "scopes"
# =>... -
ObjectSpace
. # each _ object -> Enumerator (9157.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......ブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります......uby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"
# => "scope"
# => "scopes"
# =>... -
ObjectSpace
. # each _ object(klass) -> Enumerator (9157.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......ブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります......uby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"
# => "scope"
# => "scopes"
# =>... -
Zlib
. # crc32 _ combine(crc1 , crc2 , length) -> Integer (6402.0) -
与えられた二つの CRC-32 チェックサムを一つにつなげます。
...与えられた二つの CRC-32 チェックサムを一つにつなげます。
@param crc1 CRC-32 チェックサムを指定します。
@param crc2 CRC-32 チェックサムを指定します。
@param length crc2 を生成するのに使用した文字列の長さを指定します。... -
Process
. # clock _ gettime(clock _ id , unit=:float _ second) -> Float | Integer (6344.0) -
POSIX の clock_gettime() 関数の時間を返します。
...POSIX の clock_gettime() 関数の時間を返します。
例:
p Process.clock_gettime(Process::CLOCK_MONOTONIC) #=> 896053.968060096
@param clock_id クロックの種類を以下の定数のいずれかで指定します。
サポートされている定数は OS やバー......rocess::CLOCK_REALTIME
SUSv2 to 4, Linux 2.5.63, FreeBSD 3.0, NetBSD 2.0, OpenBSD 2.1, macOS 10.12
: Process::CLOCK_MONOTONIC
SUSv3 to 4, Linux 2.5.63, FreeBSD 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
: Proces......s::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_PROF
FreeBSD 3.0, OpenBSD 2.1
: Process::CLOCK_REALTIME_FAST
FreeBSD 8.1
: Process::CLOCK_REALTIME_PRECISE
FreeBSD 8.1
: Process::CLOCK_R...