6601件ヒット
[201-300件を表示]
(0.233秒)
ライブラリ
- ビルトイン (6601)
クラス
-
ARGF
. class (96) - Array (293)
- BasicObject (12)
- Bignum (12)
- Binding (7)
- Complex (24)
- Data (3)
- Dir (35)
-
Encoding
:: Converter (48) - Enumerator (31)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Chain (7) -
Errno
:: EXXX (12) - File (164)
-
File
:: Stat (204) - Fixnum (9)
- Float (196)
- Hash (36)
- IO (317)
- Integer (842)
- MatchData (90)
- Method (36)
- Module (24)
- Mutex (2)
- NilClass (12)
- Numeric (249)
- Object (102)
- Proc (36)
-
Process
:: Status (84) - Random (168)
- Range (28)
- Rational (96)
- Regexp (144)
- RubyVM (12)
-
RubyVM
:: AbstractSyntaxTree :: Node (28) -
RubyVM
:: InstructionSequence (12) - Set (9)
- SignalException (12)
- String (309)
- Struct (72)
- Symbol (39)
- SystemCallError (12)
- SystemExit (12)
- Thread (79)
-
Thread
:: Backtrace :: Location (12) -
Thread
:: Mutex (10) -
Thread
:: Queue (30) -
Thread
:: SizedQueue (26) - Time (305)
- TracePoint (12)
- UnboundMethod (48)
モジュール
- Enumerable (176)
-
File
:: Constants (332) - FileTest (36)
- GC (48)
- Kernel (271)
- Marshal (24)
- Math (36)
- ObjectSpace (48)
- Process (816)
-
Process
:: GID (108) -
Process
:: Sys (48) -
Process
:: UID (108)
オブジェクト
- ENV (24)
キーワード
-
$ $ (12) -
$ . (12) -
$ SAFE (7) - % (24)
- & (24)
- * (12)
- ** (12)
- + (12)
- - (12)
- -@ (30)
-
/ (23) - < (12)
- << (30)
- <= (12)
- <=> (36)
- == (12)
- === (12)
- =~ (36)
- > (12)
- >= (12)
- >> (24)
- APPEND (12)
- BINARY (12)
- Bignum (9)
-
CLOCK
_ BOOTTIME (12) -
CLOCK
_ BOOTTIME _ ALARM (12) -
CLOCK
_ MONOTONIC (12) -
CLOCK
_ MONOTONIC _ COARSE (12) -
CLOCK
_ MONOTONIC _ FAST (12) -
CLOCK
_ MONOTONIC _ PRECISE (12) -
CLOCK
_ MONOTONIC _ RAW (12) -
CLOCK
_ MONOTONIC _ RAW _ APPROX (12) -
CLOCK
_ PROCESS _ CPUTIME _ ID (12) -
CLOCK
_ PROF (12) -
CLOCK
_ REALTIME (12) -
CLOCK
_ REALTIME _ ALARM (12) -
CLOCK
_ REALTIME _ COARSE (12) -
CLOCK
_ REALTIME _ FAST (12) -
CLOCK
_ REALTIME _ PRECISE (12) -
CLOCK
_ SECOND (12) -
CLOCK
_ THREAD _ CPUTIME _ ID (12) -
CLOCK
_ UPTIME (12) -
CLOCK
_ UPTIME _ FAST (12) -
CLOCK
_ UPTIME _ PRECISE (12) -
CLOCK
_ UPTIME _ RAW (12) -
CLOCK
_ UPTIME _ RAW _ APPROX (12) -
CLOCK
_ VIRTUAL (12) - CREAT (12)
- DEBUG (12)
- DEBUG= (12)
-
DEFAULT
_ PARAMS (12) - DIG (12)
- DIRECT (12)
- DSYNC (12)
- EXCL (12)
- EXTENDED (12)
- Errno (12)
- FIXEDENCODING (12)
-
FNM
_ CASEFOLD (12) -
FNM
_ DOTMATCH (12) -
FNM
_ EXTGLOB (12) -
FNM
_ NOESCAPE (12) -
FNM
_ PATHNAME (12) -
FNM
_ SYSCASE (12) - Fixnum (9)
- IGNORECASE (12)
-
INTERNAL
_ CONSTANTS (12) - Integer (24)
-
LOCK
_ EX (12) -
LOCK
_ NB (12) -
LOCK
_ SH (12) -
LOCK
_ UN (12) -
MAJOR
_ VERSION (12) -
MANT
_ DIG (12) -
MAX
_ 10 _ EXP (12) -
MAX
_ EXP (12) -
MINOR
_ VERSION (12) -
MIN
_ 10 _ EXP (12) -
MIN
_ EXP (12) - MULTILINE (12)
- NOATIME (12)
- NOCTTY (12)
- NOENCODING (12)
- NOFOLLOW (12)
- NONBLOCK (12)
- Numeric (12)
-
PRIO
_ PGRP (12) -
PRIO
_ PROCESS (12) -
PRIO
_ USER (12) - RADIX (12)
- RDONLY (12)
- RDWR (12)
-
RLIMIT
_ AS (12) -
RLIMIT
_ CORE (12) -
RLIMIT
_ CPU (12) -
RLIMIT
_ DATA (12) -
RLIMIT
_ FSIZE (12) -
RLIMIT
_ MEMLOCK (12) -
RLIMIT
_ NOFILE (12) -
RLIMIT
_ NPROC (12) -
RLIMIT
_ RSS (12) -
RLIMIT
_ SBSIZE (12) -
RLIMIT
_ STACK (12) -
RLIM
_ INFINITY (12) -
RLIM
_ SAVED _ CUR (12) -
RLIM
_ SAVED _ MAX (12) - ROUNDS (7)
- RSYNC (12)
-
RUBY
_ PATCHLEVEL (12) -
RUBY
_ REVISION (6) - Rational (24)
-
SEEK
_ CUR (12) -
SEEK
_ DATA (12) -
SEEK
_ END (12) -
SEEK
_ HOLE (12) -
SEEK
_ SET (12) -
SHARE
_ DELETE (10) - SYNC (12)
- TMPFILE (10)
- TRUNC (12)
- WNOHANG (12)
- WRONLY (12)
- WUNTRACED (12)
- [] (36)
- []= (12)
- ^ (12)
-
_ _ id _ _ (12) - abs (12)
-
add
_ trace _ func (12) - allbits? (8)
- any? (48)
- anybits? (8)
- arity (36)
- at (53)
- begin (12)
- binwrite (12)
-
bit
_ length (18) - blksize (12)
- blocks (12)
-
bsearch
_ index (20) - byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (24)
- bytesize (12)
- ceil (48)
- ceildiv (3)
-
change
_ privilege (24) - chmod (12)
- chown (12)
- chr (36)
- class (12)
- classify (3)
-
clock
_ gettime (12) - codepoints (24)
- coerce (12)
- compile (12)
- concat (18)
-
const
_ source _ location (12) -
copy
_ stream (24) - count (96)
- day (12)
- delete (12)
- denominator (60)
-
dev
_ major (12) -
dev
_ minor (12) - dig (9)
- digits (24)
- div (24)
- divmod (18)
- downto (24)
-
each
_ object (48) - egid (12)
- eid (24)
- eid= (24)
- end (12)
- errno (12)
- euid (12)
- even? (12)
- exitstatus (12)
- fcntl (12)
- fdiv (12)
- fileno (35)
-
find
_ index (72) -
first
_ column (7) -
first
_ lineno (19) - floor (48)
- fork (48)
- format (12)
- frexp (12)
-
from
_ name (24) - gcd (12)
- gcdlcm (12)
- getbyte (36)
- getegid (12)
- geteuid (12)
- getgid (12)
- getpgid (12)
- getpgrp (12)
- getpriority (12)
- getrlimit (12)
- getsid (12)
- getuid (12)
- gid (24)
-
gmt
_ offset (12) - gmtoff (12)
-
grant
_ privilege (24) - groups (12)
- hash (181)
- hex (12)
- hour (12)
- index (48)
- initgroups (12)
- ino (12)
- inspect (12)
- integer? (24)
- ioctl (12)
- kill (12)
-
last
_ column (7) -
last
_ lineno (7) - lchmod (12)
- lchown (12)
- lcm (12)
- left (24)
- length (105)
- lgamma (12)
- lineno (48)
- lutime (8)
- magnitude (12)
- match (3)
- max (10)
- maxgroups (12)
- maxgroups= (12)
- mday (12)
- method (12)
- min (12)
- mode (12)
- modulo (12)
- mon (12)
- month (12)
-
named
_ captures (12) - new (31)
-
new
_ seed (12) - next (12)
- nlink (12)
- nobits? (8)
- nsec (12)
-
num
_ waiting (10) - numerator (48)
-
object
_ id (12) - oct (12)
- odd? (12)
- offset (24)
- one? (45)
- ord (24)
- owner (12)
- pack (21)
- pid (36)
- pos (36)
- pow (24)
- ppid (12)
- pred (12)
-
primitive
_ convert (48) - priority (12)
- priority= (12)
-
public
_ method (12) - putc (12)
- pwrite (8)
- rand (96)
- rationalize (24)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) -
re
_ exchange (24) - readbyte (24)
- real? (12)
- remainder (12)
-
reverse
_ each (4) - rid (24)
- rindex (48)
- round (57)
-
safe
_ level (7) - sec (12)
- seed (12)
-
set
_ trace _ func (12) - setbyte (12)
- setsid (12)
- signo (12)
-
singleton
_ class (12) - size (203)
- size? (36)
- sleep (36)
-
sort
_ by (24) -
source
_ location (43) - spawn (60)
- sprintf (12)
- sqrt (20)
- srand (48)
- stat (24)
- state (24)
- status (12)
- step (93)
- stopsig (12)
- subsec (12)
- succ (12)
- sum (54)
- switch (48)
- syscall (12)
- sysopen (12)
- sysseek (12)
- syswrite (12)
- tally (8)
- tell (36)
- termsig (12)
- test (24)
- times (24)
-
to
_ f (24) -
to
_ i (120) -
to
_ int (36) -
to
_ r (12) -
to
_ s (12) - truncate (48)
-
try
_ convert (4) -
tv
_ nsec (12) -
tv
_ sec (12) -
tv
_ usec (12) - uid (24)
- umask (24)
- unlink (12)
- unpack (12)
- upto (24)
- usec (12)
-
utc
_ offset (12) - utime (12)
-
values
_ at (12) - wait (12)
- wait2 (12)
- waitall (12)
- waitpid (12)
- waitpid2 (12)
- wday (12)
-
world
_ readable? (36) -
world
_ writable? (12) - write (48)
-
write
_ nonblock (12) - yday (12)
- year (12)
- | (12)
- ~ (24)
検索結果
先頭5件
-
Integer
# [](nth) -> Integer (17103.0) -
nth 番目のビット(最下位ビット(LSB)が 0 番目)が立っている時 1 を、そうでなければ 0 を返します。
nth 番目のビット(最下位ビット(LSB)が 0 番目)が立っている時 1
を、そうでなければ 0 を返します。
@param nth 何ビット目を指すかの数値
@param len 何ビット分を返すか
@param range 返すビットの範囲
@return self[nth] は 1 か 0
@return self[i, len] は (n >> i) & ((1 << len) - 1) と同じ
@return self[i..j] は (n >> i) & ((1 << (j - i + 1)) - 1) と同じ
@return sel... -
Integer
# [](nth , len) -> Integer (17103.0) -
nth 番目のビット(最下位ビット(LSB)が 0 番目)が立っている時 1 を、そうでなければ 0 を返します。
nth 番目のビット(最下位ビット(LSB)が 0 番目)が立っている時 1
を、そうでなければ 0 を返します。
@param nth 何ビット目を指すかの数値
@param len 何ビット分を返すか
@param range 返すビットの範囲
@return self[nth] は 1 か 0
@return self[i, len] は (n >> i) & ((1 << len) - 1) と同じ
@return self[i..j] は (n >> i) & ((1 << (j - i + 1)) - 1) と同じ
@return sel... -
Integer
# [](range) -> Integer (17103.0) -
nth 番目のビット(最下位ビット(LSB)が 0 番目)が立っている時 1 を、そうでなければ 0 を返します。
nth 番目のビット(最下位ビット(LSB)が 0 番目)が立っている時 1
を、そうでなければ 0 を返します。
@param nth 何ビット目を指すかの数値
@param len 何ビット分を返すか
@param range 返すビットの範囲
@return self[nth] は 1 か 0
@return self[i, len] は (n >> i) & ((1 << len) - 1) と同じ
@return self[i..j] は (n >> i) & ((1 << (j - i + 1)) - 1) と同じ
@return sel... -
Integer
# abs -> Integer (17102.0) -
self の絶対値を返します。
self の絶対値を返します。
//emlist[][ruby]{
-12345.abs # => 12345
12345.abs # => 12345
-1234567890987654321.abs # => 1234567890987654321
//} -
Integer
# digits -> [Integer] (17102.0) -
base を基数として self を位取り記数法で表記した数値を配列で返します。 base を指定しない場合の基数は 10 です。
base を基数として self を位取り記数法で表記した数値を配列で返します。
base を指定しない場合の基数は 10 です。
//emlist[][ruby]{
16.digits # => [6, 1]
16.digits(16) # => [0, 1]
//}
self は非負整数でなければいけません。非負整数でない場合は、Math::DomainErrorが発生します。
//emlist[][ruby]{
-10.digits # Math::DomainError: out of domain が発生
//}
@return 位取り記数法で表した時の数... -
Integer
# digits(base) -> [Integer] (17102.0) -
base を基数として self を位取り記数法で表記した数値を配列で返します。 base を指定しない場合の基数は 10 です。
base を基数として self を位取り記数法で表記した数値を配列で返します。
base を指定しない場合の基数は 10 です。
//emlist[][ruby]{
16.digits # => [6, 1]
16.digits(16) # => [0, 1]
//}
self は非負整数でなければいけません。非負整数でない場合は、Math::DomainErrorが発生します。
//emlist[][ruby]{
-10.digits # Math::DomainError: out of domain が発生
//}
@return 位取り記数法で表した時の数... -
Integer
# magnitude -> Integer (17102.0) -
self の絶対値を返します。
self の絶対値を返します。
//emlist[][ruby]{
-12345.abs # => 12345
12345.abs # => 12345
-1234567890987654321.abs # => 1234567890987654321
//} -
Integer
# &(other) -> Integer (17101.0) -
ビット二項演算子。論理積を計算します。
ビット二項演算子。論理積を計算します。
@param other 数値
//emlist[][ruby]{
1 & 1 # => 1
2 & 3 # => 2
//} -
Integer
# -@ -> Integer (17101.0) -
単項演算子の - です。 self の符号を反転させたものを返します。
単項演算子の - です。
self の符号を反転させたものを返します。
//emlist[][ruby]{
- 10 # => -10
- -10 # => 10
//} -
Integer
# <<(bits) -> Integer (17101.0) -
シフト演算子。bits だけビットを左にシフトします。
シフト演算子。bits だけビットを左にシフトします。
@param bits シフトさせるビット数
//emlist[][ruby]{
printf("%#b\n", 0b0101 << 1) # => 0b1010
p -1 << 1 # => -2
//} -
Integer
# >>(bits) -> Integer (17101.0) -
シフト演算子。bits だけビットを右にシフトします。
シフト演算子。bits だけビットを右にシフトします。
右シフトは、符号ビット(最上位ビット(MSB))が保持されます。
bitsが実数の場合、小数点以下を切り捨てた値でシフトします。
@param bits シフトさせるビット数
//emlist[][ruby]{
printf("%#b\n", 0b0101 >> 1) # => 0b10
p -1 >> 1 # => -1
//}