クラス
-
ARGF
. class (79) - Array (178)
- BasicObject (14)
- Binding (6)
- Class (7)
- Complex (48)
- Dir (49)
- Encoding (222)
-
Encoding
:: Converter (23) -
Encoding
:: InvalidByteSequenceError (7) -
Encoding
:: UndefinedConversionError (5) - Enumerator (17)
-
Enumerator
:: Lazy (34) -
Enumerator
:: Yielder (2) -
Errno
:: EXXX (3) - Exception (14)
- FalseClass (5)
- Fiber (3)
- File (81)
-
File
:: Stat (43) - Float (57)
- FrozenError (1)
- Hash (96)
- IO (149)
- Integer (70)
- KeyError (2)
- LoadError (1)
- LocalJumpError (2)
- MatchData (24)
- Method (22)
- Module (80)
- NameError (5)
- NilClass (13)
- NoMethodError (3)
- Numeric (49)
- Object (93)
-
ObjectSpace
:: WeakMap (1) - Proc (17)
-
Process
:: Status (15) -
Process
:: Tms (4) - Random (21)
- Range (32)
- Rational (30)
- Regexp (31)
- RubyVM (3)
-
RubyVM
:: InstructionSequence (20) - SignalException (5)
- StopIteration (1)
- String (185)
- Struct (26)
- Symbol (34)
- SystemCallError (5)
- SystemExit (3)
- Thread (53)
-
Thread
:: Backtrace :: Location (7) -
Thread
:: ConditionVariable (4) -
Thread
:: Mutex (8) -
Thread
:: Queue (14) -
Thread
:: SizedQueue (12) - ThreadGroup (6)
- Time (69)
- TracePoint (19)
- TrueClass (5)
- UnboundMethod (14)
- UncaughtThrowError (3)
モジュール
- Comparable (7)
- Enumerable (115)
-
File
:: Constants (29) - FileTest (27)
- GC (12)
-
GC
:: Profiler (8) - Kernel (158)
- Marshal (6)
- Math (29)
- ObjectSpace (10)
- Process (83)
-
Process
:: GID (10) -
Process
:: Sys (15) -
Process
:: UID (10) - Signal (4)
- Warning (2)
キーワード
- ! (1)
- != (1)
- !~ (1)
-
$ ! (1) -
$ " (1) -
$ $ (1) -
$ & (1) -
$ & # 39; (1) -
$ * (1) -
$ + (1) -
$ , (1) -
$ -0 (1) -
$ -F (1) -
$ -I (1) -
$ -K (1) -
$ -W (1) -
$ -a (1) -
$ -d (1) -
$ -i (1) -
$ -l (1) -
$ -p (1) -
$ -v (1) -
$ -w (1) -
$ . (1) -
$ / (1) -
$ 0 (1) -
$ 1 (1) -
$ 10 (1) -
$ 11 (1) -
$ 2 (1) -
$ 3 (1) -
$ 4 (1) -
$ 5 (1) -
$ 6 (1) -
$ 7 (1) -
$ 8 (1) -
$ 9 (1) -
$ : (1) -
$ ; (1) -
$ < (1) -
$ = (1) -
$ > (1) -
$ ? (1) -
$ @ (1) -
$ DEBUG (1) -
$ FILENAME (1) -
$ KCODE (1) -
$ LOADED _ FEATURES (1) -
$ LOAD _ PATH (1) -
$ PROGRAM _ NAME (1) -
$ SAFE (1) -
$ VERBOSE (1) -
$ \ (1) -
$ _ (1) -
$ ` (1) -
$ stderr (1) -
$ stdin (1) -
$ stdout (1) -
$ ~ (1) - % (4)
- & (6)
- * (7)
- ** (4)
- + (7)
- +@ (2)
- -@ (6)
-
/ (4) - < (6)
- << (7)
- <= (6)
- <=> (11)
- == (20)
- === (10)
- =~ (4)
- > (6)
- >= (6)
- >> (2)
-
ALT
_ SEPARATOR (1) -
ANSI
_ X3 _ 4 _ 1968 (1) - APPEND (1)
- ARGF (2)
- ARGV (1)
- ASCII (1)
-
ASCII
_ 8BIT (1) - Array (1)
- BIG5 (1)
-
BIG5
_ HKSCS (1) -
BIG5
_ HKSCS _ 2008 (1) -
BIG5
_ UAO (1) - BINARY (2)
- Big5 (1)
-
Big5
_ HKSCS (1) -
Big5
_ HKSCS _ 2008 (1) -
Big5
_ UAO (1) -
CLOCK
_ BOOTTIME (1) -
CLOCK
_ BOOTTIME _ ALARM (1) -
CLOCK
_ MONOTONIC (1) -
CLOCK
_ MONOTONIC _ COARSE (1) -
CLOCK
_ MONOTONIC _ FAST (1) -
CLOCK
_ MONOTONIC _ PRECISE (1) -
CLOCK
_ MONOTONIC _ RAW (1) -
CLOCK
_ MONOTONIC _ RAW _ APPROX (1) -
CLOCK
_ PROCESS _ CPUTIME _ ID (1) -
CLOCK
_ PROF (1) -
CLOCK
_ REALTIME (1) -
CLOCK
_ REALTIME _ ALARM (1) -
CLOCK
_ REALTIME _ COARSE (1) -
CLOCK
_ REALTIME _ FAST (1) -
CLOCK
_ REALTIME _ PRECISE (1) -
CLOCK
_ SECOND (1) -
CLOCK
_ THREAD _ CPUTIME _ ID (1) -
CLOCK
_ UPTIME (1) -
CLOCK
_ UPTIME _ FAST (1) -
CLOCK
_ UPTIME _ PRECISE (1) -
CLOCK
_ UPTIME _ RAW (1) -
CLOCK
_ UPTIME _ RAW _ APPROX (1) -
CLOCK
_ VIRTUAL (1) - CP1250 (1)
- CP1251 (1)
- CP1252 (1)
- CP1253 (1)
- CP1254 (1)
- CP1255 (1)
- CP1256 (1)
- CP1257 (1)
- CP1258 (1)
- CP437 (1)
- CP50220 (1)
- CP50221 (1)
- CP51932 (1)
- CP65000 (1)
- CP65001 (1)
- CP737 (1)
- CP775 (1)
- CP850 (1)
- CP852 (1)
- CP855 (1)
- CP857 (1)
- CP860 (1)
- CP861 (1)
- CP862 (1)
- CP863 (1)
- CP864 (1)
- CP865 (1)
- CP866 (1)
- CP869 (1)
- CP874 (1)
- CP878 (1)
- CP932 (1)
- CP936 (1)
- CP949 (1)
- CP950 (1)
- CP951 (1)
- CREAT (1)
- CSWINDOWS31J (1)
- Comparable (1)
- CompatibilityError (1)
- Complex (3)
- ConditionVariable (1)
- ConverterNotFoundError (1)
- CsWindows31J (1)
- DATA (1)
- DEBUG (1)
- DEBUG= (1)
- DEFAULT (1)
-
DEFAULT
_ PARAMS (1) - DIG (1)
- DIRECT (1)
- DSYNC (1)
- Default (1)
- E (1)
-
EBCDIC
_ CP _ US (1) -
EMACS
_ MULE (1) - ENV (1)
- EPSILON (1)
- EUCCN (1)
- EUCJP (1)
-
EUCJP
_ MS (1) - EUCKR (1)
- EUCTW (1)
-
EUC
_ CN (1) -
EUC
_ JP (1) -
EUC
_ JP _ MS (1) -
EUC
_ KR (1) -
EUC
_ TW (1) - EXCL (1)
- EXTENDED (1)
- EXXX (1)
-
Emacs
_ Mule (1) - Enumerable (1)
- Errno (1)
- EucCN (1)
- EucJP (1)
-
EucJP
_ ms (1) - EucKR (1)
- EucTW (1)
- FALSE (1)
- FIXEDENCODING (1)
-
FNM
_ CASEFOLD (1) -
FNM
_ DOTMATCH (1) -
FNM
_ EXTGLOB (1) -
FNM
_ NOESCAPE (1) -
FNM
_ PATHNAME (1) -
FNM
_ SYSCASE (1) - Float (1)
- GB12345 (1)
- GB18030 (1)
- GB1988 (1)
- GBK (1)
- GC (1)
- Hash (1)
- I (1)
- IBM037 (1)
- IBM437 (1)
- IBM737 (1)
- IBM775 (1)
- IBM850 (1)
- IBM852 (1)
- IBM855 (1)
- IBM857 (1)
- IBM860 (1)
- IBM861 (1)
- IBM862 (1)
- IBM863 (1)
- IBM864 (1)
- IBM865 (1)
- IBM866 (1)
- IBM869 (1)
- IGNORECASE (1)
- INFINITY (1)
-
INSTRUCTION
_ NAMES (1) -
INTERNAL
_ CONSTANTS (1) - IO (1)
-
ISO2022
_ JP (1) -
ISO2022
_ JP2 (1) -
ISO8859
_ 1 (1) -
ISO8859
_ 10 (1) -
ISO8859
_ 11 (1) -
ISO8859
_ 13 (1) -
ISO8859
_ 14 (1) -
ISO8859
_ 15 (1) -
ISO8859
_ 16 (1) -
ISO8859
_ 2 (1) -
ISO8859
_ 3 (1) -
ISO8859
_ 4 (1) -
ISO8859
_ 5 (1) -
ISO8859
_ 6 (1) -
ISO8859
_ 7 (1) -
ISO8859
_ 8 (1) -
ISO8859
_ 9 (1) -
ISO
_ 2022 _ JP (1) -
ISO
_ 2022 _ JP _ 2 (1) -
ISO
_ 2022 _ JP _ KDDI (1) -
ISO
_ 8859 _ 1 (1) -
ISO
_ 8859 _ 10 (1) -
ISO
_ 8859 _ 11 (1) -
ISO
_ 8859 _ 13 (1) -
ISO
_ 8859 _ 14 (1) -
ISO
_ 8859 _ 15 (1) -
ISO
_ 8859 _ 16 (1) -
ISO
_ 8859 _ 2 (1) -
ISO
_ 8859 _ 3 (1) -
ISO
_ 8859 _ 4 (1) -
ISO
_ 8859 _ 5 (1) -
ISO
_ 8859 _ 6 (1) -
ISO
_ 8859 _ 7 (1) -
ISO
_ 8859 _ 8 (1) -
ISO
_ 8859 _ 9 (1) - Integer (1)
- InvalidByteSequenceError (1)
-
KOI8
_ R (1) -
KOI8
_ U (1) -
LOCK
_ EX (1) -
LOCK
_ NB (1) -
LOCK
_ SH (1) -
LOCK
_ UN (1) - MACCENTEURO (1)
- MACCROATIAN (1)
- MACCYRILLIC (1)
- MACGREEK (1)
- MACICELAND (1)
- MACJAPAN (1)
- MACJAPANESE (1)
- MACROMAN (1)
- MACROMANIA (1)
- MACTHAI (1)
- MACTURKISH (1)
- MACUKRAINE (1)
-
MAJOR
_ VERSION (1) -
MANT
_ DIG (1) - MAX (1)
-
MAX
_ 10 _ EXP (1) -
MAX
_ EXP (1) - MIN (1)
-
MINOR
_ VERSION (1) -
MIN
_ 10 _ EXP (1) -
MIN
_ EXP (1) - MULTILINE (1)
-
MUTEX
_ FOR _ THREAD _ EXCLUSIVE (1) - MacCentEuro (1)
- MacCroatian (1)
- MacCyrillic (1)
- MacGreek (1)
- MacIceland (1)
- MacJapan (1)
- MacJapanese (1)
- MacRoman (1)
- MacRomania (1)
- MacThai (1)
- MacTurkish (1)
- MacUkraine (1)
- NAN (1)
- NIL (1)
- NOATIME (1)
- NOCTTY (1)
- NOENCODING (1)
- NOFOLLOW (1)
- NONBLOCK (1)
- NULL (1)
- Numeric (1)
- OPTS (2)
-
PATH
_ SEPARATOR (1) - PCK (1)
- PI (1)
-
PRIO
_ PGRP (1) -
PRIO
_ PROCESS (1) -
PRIO
_ USER (1) - Proc (1)
- RADIX (1)
- RDONLY (1)
- RDWR (1)
-
RLIMIT
_ AS (1) -
RLIMIT
_ CORE (1) -
RLIMIT
_ CPU (1) -
RLIMIT
_ DATA (1) -
RLIMIT
_ FSIZE (1) -
RLIMIT
_ MEMLOCK (1) -
RLIMIT
_ NOFILE (1) -
RLIMIT
_ NPROC (1) -
RLIMIT
_ RSS (1) -
RLIMIT
_ SBSIZE (1) -
RLIMIT
_ STACK (1) -
RLIM
_ INFINITY (1) -
RLIM
_ SAVED _ CUR (1) -
RLIM
_ SAVED _ MAX (1) - ROUNDS (1)
- RSYNC (1)
-
RUBY
_ COPYRIGHT (1) -
RUBY
_ DESCRIPTION (1) -
RUBY
_ ENGINE (1) -
RUBY
_ ENGINE _ VERSION (1) -
RUBY
_ PATCHLEVEL (1) -
RUBY
_ PLATFORM (1) -
RUBY
_ RELEASE _ DATE (1) -
RUBY
_ REVISION (1) -
RUBY
_ VERSION (1) - Random (1)
- Rational (1)
- RegexpError (1)
-
SCRIPT
_ LINES _ _ (1) -
SEEK
_ CUR (1) -
SEEK
_ DATA (1) -
SEEK
_ END (1) -
SEEK
_ HOLE (1) -
SEEK
_ SET (1) - SEPARATOR (1)
-
SHARE
_ DELETE (1) -
SHIFT
_ JIS (1) - SJIS (1)
-
SJIS
_ DOCOMO (1) -
SJIS
_ DoCoMo (1) -
SJIS
_ KDDI (1) -
SJIS
_ SOFTBANK (1) -
SJIS
_ SoftBank (1) -
STATELESS
_ ISO _ 2022 _ JP (1) -
STATELESS
_ ISO _ 2022 _ JP _ KDDI (1) - STDERR (1)
- STDIN (1)
- STDOUT (1)
- SYNC (1)
- Separator (1)
-
Shift
_ JIS (1) - SizedQueue (1)
- Stat (1)
-
Stateless
_ ISO _ 2022 _ JP (1) -
Stateless
_ ISO _ 2022 _ JP _ KDDI (1) - String (2)
-
TIS
_ 620 (1) - TMPFILE (1)
-
TOPLEVEL
_ BINDING (1) - TRUE (1)
- TRUNC (1)
- Thread (1)
- ThreadGroup (1)
- Time (1)
-
UCS
_ 2BE (1) -
UCS
_ 4BE (1) -
UCS
_ 4LE (1) -
US
_ ASCII (1) -
UTF8
_ DOCOMO (1) -
UTF8
_ DoCoMo (1) -
UTF8
_ KDDI (1) -
UTF8
_ MAC (1) -
UTF8
_ SOFTBANK (1) -
UTF8
_ SoftBank (1) -
UTF
_ 16 (1) -
UTF
_ 16BE (1) -
UTF
_ 16LE (1) -
UTF
_ 32 (1) -
UTF
_ 32BE (1) -
UTF
_ 32LE (1) -
UTF
_ 7 (1) -
UTF
_ 8 (1) -
UTF
_ 8 _ HFS (1) -
UTF
_ 8 _ MAC (1) - UndefinedConversionError (1)
-
WINDOWS
_ 1250 (1) -
WINDOWS
_ 1251 (1) -
WINDOWS
_ 1252 (1) -
WINDOWS
_ 1253 (1) -
WINDOWS
_ 1254 (1) -
WINDOWS
_ 1255 (1) -
WINDOWS
_ 1256 (1) -
WINDOWS
_ 1257 (1) -
WINDOWS
_ 1258 (1) -
WINDOWS
_ 31J (1) -
WINDOWS
_ 874 (1) - WNOHANG (1)
- WRONLY (1)
- WUNTRACED (1)
-
Windows
_ 1250 (1) -
Windows
_ 1251 (1) -
Windows
_ 1252 (1) -
Windows
_ 1253 (1) -
Windows
_ 1254 (1) -
Windows
_ 1255 (1) -
Windows
_ 1256 (1) -
Windows
_ 1257 (1) -
Windows
_ 1258 (1) -
Windows
_ 31J (1) -
Windows
_ 874 (1) - [] (31)
- []= (10)
- ^ (4)
-
_ _ callee _ _ (1) -
_ _ dir _ _ (1) -
_ _ id _ _ (1) -
_ _ method _ _ (1) -
_ _ send _ _ (2) -
_ dump (1) -
_ id2ref (1) -
_ load (1) - ` (1)
- abort (4)
-
abort
_ on _ exception (2) - abs (5)
- abs2 (2)
-
absolute
_ path (3) - acos (1)
- acosh (1)
- add (1)
-
add
_ trace _ func (1) - advise (1)
-
alias
_ method (1) - aliases (1)
- alive? (1)
- all? (3)
-
all
_ symbols (1) - allbits? (1)
- allocate (1)
- ancestors (1)
- angle (3)
- any? (6)
- anybits? (1)
- append (1)
-
append
_ features (1) - arg (3)
- args (1)
- argv (1)
- argv0 (1)
- arity (3)
-
ascii
_ compatible? (1) -
ascii
_ only? (1) -
asciicompat
_ encoding (2) - asctime (1)
- asin (1)
- asinh (1)
- assoc (3)
- at (4)
-
at
_ exit (1) - atan (1)
- atan2 (1)
- atanh (1)
- atime (3)
- attr (3)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - autoclose= (1)
- autoclose? (1)
- autoload (2)
- autoload? (2)
- b (1)
- backtrace (2)
-
backtrace
_ locations (3) -
base
_ label (2) - basename (1)
- begin (2)
- between? (2)
- bind (1)
- binding (3)
- binmode (2)
- binmode? (2)
- binread (1)
- binwrite (1)
- birthtime (3)
-
bit
_ length (1) - blksize (1)
-
block
_ given? (1) - blockdev? (3)
- blocks (1)
- broadcast (1)
- bsearch (4)
-
bsearch
_ index (2) - bytes (7)
- bytesize (1)
- byteslice (3)
- call (3)
-
callee
_ id (1) - caller (3)
-
caller
_ locations (2) - capitalize (2)
- capitalize! (1)
- captures (1)
- casecmp (2)
- casecmp? (2)
- casefold? (1)
- catch (2)
- cause (1)
- cbrt (1)
- ceil (4)
- center (1)
-
change
_ privilege (2) - chardev? (3)
- chars (6)
- chdir (4)
- children (2)
- chmod (2)
- chomp (2)
- chomp! (1)
- chop (2)
- chop! (1)
- chown (2)
- chr (3)
- chroot (1)
- chunk (3)
-
chunk
_ while (2) - clamp (2)
- class (1)
-
class
_ eval (2) -
class
_ exec (1) -
class
_ variable _ defined? (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) -
class
_ variables (1) - clear (6)
-
clock
_ gettime (1) - clone (7)
- close (5)
-
close
_ on _ exec= (1) -
close
_ on _ exec? (1) -
close
_ read (1) -
close
_ write (1) - closed? (3)
- codepoints (6)
- coerce (3)
- collect (5)
- collect! (2)
-
collect
_ concat (3) - combination (2)
- compact (2)
- compact! (2)
-
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) - compatible? (1)
- compile (2)
-
compile
_ file (1) -
compile
_ option (1) - concat (4)
- conj (2)
- conjugate (2)
-
const
_ defined? (1) -
const
_ get (1) -
const
_ set (1) - constants (2)
- convert (2)
- convpath (1)
-
copy
_ stream (2) - coredump? (1)
- cos (1)
- cosh (1)
- count (8)
-
count
_ objects (1) - cover? (1)
- crypt (1)
- cstime (1)
- ctime (4)
- current (1)
- curry (4)
- cutime (1)
- cycle (4)
- daemon (1)
- day (1)
- default (2)
-
default
_ external (1) -
default
_ external= (1) -
default
_ internal (1) -
default
_ internal= (1) -
default
_ proc (1) -
define
_ finalizer (2) -
define
_ method (4) -
define
_ singleton _ method (2) -
defined
_ class (1) - delete (9)
- delete! (1)
-
delete
_ at (1) -
delete
_ if (6) -
delete
_ prefix (1) -
delete
_ prefix! (1) -
delete
_ suffix (1) -
delete
_ suffix! (1) - denominator (5)
-
deprecate
_ constant (1) - deq (2)
-
destination
_ encoding (3) -
destination
_ encoding _ name (2) - detach (1)
- detect (2)
- dev (1)
-
dev
_ major (1) -
dev
_ minor (1) - dig (3)
- digits (2)
- directory? (3)
- dirname (1)
- disable (4)
- disasm (2)
- disassemble (2)
- display (1)
- div (2)
- divmod (3)
- downcase (2)
- downcase! (1)
- downto (2)
- drop (3)
-
drop
_ while (5) - dst? (1)
- dummy? (1)
- dump (3)
- dup (4)
- each (26)
-
each
_ byte (6) -
each
_ char (6) -
each
_ child (4) -
each
_ codepoint (6) -
each
_ cons (2) -
each
_ entry (2) -
each
_ grapheme _ cluster (2) -
each
_ index (2) -
each
_ key (4) -
each
_ line (12) -
each
_ object (4) -
each
_ pair (6) -
each
_ slice (2) -
each
_ value (4) -
each
_ with _ index (2) -
each
_ with _ object (2) - egid (1)
- eid (2)
- empty? (10)
- enable (4)
- enabled? (2)
- enclose (1)
- enclosed? (1)
- encode (3)
- encode! (2)
- encoding (3)
- end (2)
-
end
_ with? (1) - enq (2)
- entries (3)
-
enum
_ for (4) - eof (2)
- eof? (2)
- eql? (13)
- equal? (4)
- erf (1)
- erfc (1)
- errno (1)
-
error
_ bytes (1) -
error
_ char (1) - escape (1)
- euid (1)
- eval (4)
- even? (1)
- event (1)
- exception (3)
-
exclude
_ end? (1) - exclusive (1)
- exec (5)
- executable? (3)
-
executable
_ real? (3) - exist? (3)
- exists? (3)
- exit (4)
- exit! (2)
-
exit
_ value (1) - exited? (1)
- exitstatus (1)
- exp (1)
- extend (1)
-
extend
_ object (1) - extended (1)
-
external
_ encoding (2) - extname (1)
- fail (3)
- fatal (1)
- fcntl (1)
- fdatasync (1)
- fdiv (4)
- feed (1)
- fetch (10)
-
fetch
_ values (2) - file (1)
- file? (3)
- filename (1)
- fileno (3)
- fill (6)
- find (3)
-
find
_ all (3) -
find
_ index (6) - finish (1)
- finite? (3)
- first (6)
-
first
_ lineno (1) -
fixed
_ encoding? (1) -
flat
_ map (3) - flatten (2)
- flatten! (1)
- flock (1)
- floor (4)
- flush (1)
- fnmatch (1)
- fnmatch? (1)
-
for
_ fd (1) - force (1)
-
force
_ encoding (1) - foreach (6)
- fork (5)
- format (1)
- freeze (2)
- frexp (1)
- friday? (1)
-
from
_ name (2) - frozen? (1)
- fsync (1)
- ftype (2)
- gamma (1)
-
garbage
_ collect (2) - gcd (1)
- gcdlcm (1)
- getbyte (3)
- getc (2)
- getegid (1)
- geteuid (1)
- getgid (1)
- getgm (1)
- getlocal (2)
- getpgid (1)
- getpgrp (1)
- getpriority (1)
- getrlimit (1)
- gets (7)
- getsid (1)
- getuid (1)
- getutc (1)
- getwd (1)
- gid (2)
- glob (2)
-
global
_ variables (1) - gm (2)
- gmt? (1)
-
gmt
_ offset (1) - gmtime (1)
- gmtoff (1)
-
grant
_ privilege (2) -
grapheme
_ clusters (2) - grep (3)
-
grep
_ v (3) - group (1)
-
group
_ by (2) - groups (1)
- grpowned? (3)
- gsub (7)
- gsub! (4)
-
handle
_ interrupt (1) -
has
_ key? (2) -
has
_ value? (2) - hash (14)
- hex (1)
- home (2)
- hour (1)
- hypot (1)
- i (1)
- id2name (1)
- identical? (2)
- imag (2)
- imaginary (2)
- include (2)
- include? (7)
- included (1)
-
included
_ modules (1) -
incomplete
_ input? (1) - index (6)
- infinite? (3)
- inherited (1)
- initgroups (1)
- initialize (1)
-
initialize
_ copy (1) - inject (3)
- ino (1)
-
inplace
_ mode (1) -
inplace
_ mode= (1) - insert (2)
-
insert
_ output (1) - inspect (31)
-
instance
_ eval (2) -
instance
_ exec (1) -
instance
_ method (1) -
instance
_ methods (1) -
instance
_ of? (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - integer? (2)
- intern (2)
-
internal
_ encoding (2) - invert (2)
- ioctl (1)
- irb (1)
-
is
_ a? (1) - isatty (1)
- isdst (1)
- issetugid (1)
- iterator? (1)
- itself (1)
- join (4)
-
keep
_ if (6) - key (3)
- key? (3)
- keys (3)
- kill (3)
-
kind
_ of? (1) - label (2)
- lambda (2)
- lambda? (1)
- last (4)
-
last
_ error (1) -
last
_ match (2) -
last
_ status (1) -
latest
_ gc _ info (2) - lazy (2)
- lchmod (1)
- lchown (1)
- lcm (1)
- ldexp (1)
- left (2)
- length (9)
- lgamma (1)
- lineno (4)
- lines (14)
- link (1)
- list (4)
- ljust (1)
- load (2)
-
load
_ from _ binary (1) -
load
_ from _ binary _ extra _ data (1) - local (2)
-
local
_ variable _ defined? (1) -
local
_ variable _ get (1) -
local
_ variables (3) -
locale
_ charmap (1) - localtime (2)
- lock (1)
- locked? (1)
- log (2)
- log10 (1)
- log2 (1)
- loop (2)
- lstat (2)
- lstrip (1)
- lstrip! (1)
- lutime (1)
- magnitude (5)
- main (2)
- map (5)
- map! (2)
-
marshal
_ dump (4) -
marshal
_ load (2) - match (5)
- match? (3)
- max (13)
-
max
_ by (4) - maxgroups (1)
- mday (1)
- member? (4)
- members (2)
- merge (2)
- merge! (2)
- method (1)
-
method
_ added (1) -
method
_ defined? (1) -
method
_ id (1) -
method
_ missing (1) -
method
_ removed (1) -
method
_ undefined (1) - methods (1)
- min (13)
-
min
_ by (4) - minmax (2)
-
minmax
_ by (2) - mkdir (1)
- mkfifo (1)
- mktime (2)
- mode (1)
-
module
_ eval (2) -
module
_ exec (1) -
module
_ function (1) - modulo (3)
- mon (1)
- monday? (1)
- month (1)
- mtime (3)
- name (6)
- name= (1)
-
name
_ list (1) -
named
_ captures (2) - names (3)
- nan? (1)
- negative? (3)
- nesting (1)
- new (57)
-
new
_ seed (1) - next (4)
- next! (1)
-
next
_ float (1) -
next
_ values (1) - nil? (2)
- nlink (1)
- nobits? (1)
- none? (3)
- nonzero? (1)
- now (1)
- nsec (1)
-
num
_ waiting (1) - numerator (5)
-
object
_ id (1) - oct (1)
- odd? (1)
- of (1)
- offset (2)
- one? (3)
- open (10)
- ord (2)
-
original
_ name (2) - owned? (4)
- owner (2)
- p (1)
- pack (2)
- parameters (3)
- partition (3)
- pass (1)
- path (8)
- peek (1)
-
peek
_ values (1) -
pending
_ interrupt? (2) - permutation (2)
- phase (3)
- pid (3)
- pipe (8)
- pipe? (3)
- polar (3)
- pop (4)
- popen (14)
- pos (3)
- positive? (3)
-
post
_ match (1) - pow (2)
- pp (1)
- ppid (1)
-
pre
_ match (1) - pread (1)
- pred (1)
- prepend (4)
-
prepend
_ features (1) - prepended (1)
-
prev
_ float (1) -
primitive
_ convert (4) -
primitive
_ errinfo (1) - print (3)
- printf (4)
- priority (1)
- priority= (1)
- private (2)
-
private
_ call? (1) -
private
_ class _ method (1) -
private
_ constant (1) -
private
_ instance _ methods (1) -
private
_ method _ defined? (1) -
private
_ methods (1) - proc (2)
- product (2)
- protected (1)
-
protected
_ instance _ methods (1) -
protected
_ method _ defined? (1) -
protected
_ methods (1) - public (2)
-
public
_ class _ method (1) -
public
_ constant (1) -
public
_ instance _ method (1) -
public
_ instance _ methods (1) -
public
_ method (1) -
public
_ method _ defined? (1) -
public
_ methods (1) -
public
_ send (2) - push (3)
- putback (2)
- putc (3)
- puts (3)
- pwd (1)
- pwrite (1)
- quo (3)
- quote (1)
- raise (4)
-
raised
_ exception (1) - rand (8)
- rassoc (3)
- rationalize (9)
-
raw
_ data (1) - rdev (1)
-
rdev
_ major (1) -
rdev
_ minor (1) -
re
_ exchange (2) -
re
_ exchangeable? (2) - read (6)
-
read
_ nonblock (2) - readable? (3)
-
readable
_ real? (3) -
readagain
_ bytes (1) - readbyte (2)
- readchar (2)
- readline (7)
- readlines (10)
- readlink (1)
- readpartial (2)
- real (2)
- real? (2)
- realdirpath (1)
- realpath (1)
- reason (1)
- receiver (4)
- rect (3)
- rectangular (3)
- reduce (3)
- refine (1)
- regexp (1)
- rehash (2)
- reject (9)
- reject! (6)
- remainder (2)
-
remove
_ class _ variable (1) -
remove
_ const (1) -
remove
_ instance _ variable (1) -
remove
_ method (1) - rename (1)
- reopen (3)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (4)
- replacement (1)
- replacement= (1)
- replicate (1)
- report (1)
-
report
_ on _ exception (2) -
report
_ on _ exception= (1) - require (1)
-
require
_ relative (1) -
respond
_ to? (1) -
respond
_ to _ missing? (1) - restore (1)
- result (2)
- resume (1)
-
return
_ value (1) - reverse (2)
- reverse! (2)
-
reverse
_ each (4) - rewind (4)
- rid (2)
- rindex (4)
- rjust (1)
- rmdir (1)
- rotate (1)
- rotate! (1)
- round (6)
- rpartition (1)
- rstrip (1)
- rstrip! (1)
- run (1)
-
safe
_ level (1) - sample (4)
- saturday? (1)
- scan (2)
- scrub (3)
- scrub! (3)
-
search
_ convpath (1) - sec (1)
- seed (1)
- seek (3)
- select (13)
- select! (6)
- self (1)
- send (2)
-
set
_ backtrace (1) -
set
_ encoding (6) -
set
_ trace _ func (2) - setbyte (1)
- setegid (1)
- seteuid (1)
- setgid (1)
- setgid? (3)
- setpgid (1)
- setpgrp (1)
- setpriority (1)
- setproctitle (1)
- setregid (1)
- setresgid (1)
- setresuid (1)
- setreuid (1)
- setrgid (1)
- setrlimit (2)
- setruid (1)
- setsid (1)
- setuid (1)
- setuid? (3)
- shift (6)
- shuffle (2)
- shuffle! (2)
-
sid
_ available? (2) - signal (1)
- signaled? (1)
- signame (1)
- signm (1)
- signo (1)
- sin (1)
-
singleton
_ class (1) -
singleton
_ class? (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - sinh (1)
- size (16)
- size? (3)
- skip (1)
- sleep (3)
- slice (15)
- slice! (9)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - socket? (3)
- sort (4)
- sort! (2)
-
sort
_ by (2) -
sort
_ by! (2) - source (1)
-
source
_ encoding (3) -
source
_ encoding _ name (2) -
source
_ location (3) - spawn (5)
- split (2)
- sprintf (1)
- sqrt (2)
- squeeze (1)
- squeeze! (1)
- srand (4)
- start (2)
-
start
_ with? (1) - stat (5)
- state (2)
- status (2)
- step (8)
- sticky? (3)
- stime (1)
- stop (1)
- stop? (1)
- stopped? (1)
- stopsig (1)
- store (2)
- stress (1)
- strftime (1)
- string (1)
- strip (1)
- strip! (1)
- sub (5)
- sub! (3)
- subsec (1)
- succ (4)
- succ! (1)
- success? (2)
- sum (5)
- sunday? (1)
-
super
_ method (2) - superclass (1)
- swapcase (2)
- swapcase! (1)
- switch (4)
- symlink (1)
- symlink? (3)
- sync (1)
- synchronize (1)
- syscall (1)
- sysopen (1)
- sysread (1)
- sysseek (1)
- system (4)
- syswrite (1)
- tag (1)
- taint (1)
- tainted? (1)
- take (3)
-
take
_ while (6) - tan (1)
- tanh (1)
- tap (1)
- tell (3)
- terminate (1)
- termsig (1)
- test (2)
-
thread
_ variable? (1) -
thread
_ variable _ get (1) - throw (1)
- thursday? (1)
- times (3)
-
to
_ a (13) -
to
_ ary (2) -
to
_ binary (1) -
to
_ c (4) -
to
_ enum (4) -
to
_ f (7) -
to
_ h (6) -
to
_ hash (3) -
to
_ i (10) -
to
_ int (3) -
to
_ io (3) -
to
_ path (2) -
to
_ proc (5) -
to
_ r (7) -
to
_ regexp (1) -
to
_ s (31) -
to
_ str (2) -
to
_ sym (2) -
to
_ tty? (1) -
to
_ write _ io (1) -
total
_ time (1) - tr (1)
- tr! (1)
-
tr
_ s (1) -
tr
_ s! (1) - trace (1)
-
trace
_ var (3) -
transform
_ keys (2) -
transform
_ keys! (2) -
transform
_ values (2) -
transform
_ values! (2) - transpose (1)
- trap (4)
- truncate (6)
- trust (1)
-
try
_ convert (5) -
try
_ lock (1) - tty? (1)
- tuesday? (1)
-
tv
_ nsec (1) -
tv
_ sec (1) -
tv
_ usec (1) - uid (2)
- umask (2)
- unbind (1)
-
undef
_ method (1) -
undefine
_ finalizer (1) - undump (1)
- ungetbyte (1)
- ungetc (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - union (1)
- uniq (6)
- uniq! (2)
- unlink (2)
- unlock (1)
- unpack (1)
- unpack1 (1)
- unshift (1)
- untaint (1)
-
untrace
_ var (1) - untrust (1)
- untrusted? (1)
- upcase (2)
- upcase! (1)
- update (4)
- upto (3)
- urandom (1)
- usec (1)
-
used
_ modules (1) - using (2)
- utc (3)
- utc? (1)
-
utc
_ offset (1) - utime (2)
-
valid
_ encoding? (1) - value (2)
- value? (2)
- values (3)
-
values
_ at (5) - wait (2)
- wait2 (1)
- waitall (1)
- waitpid (1)
- waitpid2 (1)
- wakeup (1)
- warn (3)
- wday (1)
- wednesday? (1)
-
with
_ index (2) -
with
_ object (2) -
world
_ readable? (3) -
world
_ writable? (3) - writable? (3)
-
writable
_ real? (3) - write (4)
-
write
_ nonblock (1) - yday (1)
- year (1)
- yield (3)
-
yield
_ self (2) - zero? (5)
- zip (6)
- zone (1)
- | (5)
- ~ (2)
検索結果
先頭5件
-
Encoding
:: TIS _ 620 -> Encoding (391.0) -
TIS-620 エンコーディング。
TIS-620 エンコーディング。
タイ語を扱うためのエンコーディングで、 ISO8859-11 とほぼ
同一のエンコーディングです。
@see https://en.wikipedia.org/wiki/Thai_Industrial_Standard_620-2533 -
Encoding
:: WINDOWS _ 1250 -> Encoding (391.0) -
Windows-1250 エンコーディング。
Windows-1250 エンコーディング。
ISO8859-2 の亜種です。
@see http://www.microsoft.com/globaldev/reference/sbcs/1250.mspx,
https://en.wikipedia.org/wiki/Windows-1250 -
Encoding
:: WINDOWS _ 1258 -> Encoding (391.0) -
WINDOWS-1258 エンコーディング。
WINDOWS-1258 エンコーディング。
ベトナム語を扱う 8bit single-byteエンコーディングです。
@see https://en.wikipedia.org/wiki/Windows-1258 -
Encoding
:: WINDOWS _ 31J -> Encoding (391.0) -
Windows-31J、Windows で用いられる、シフトJIS亜種で、CP932とも言います。
Windows-31J、Windows で用いられる、シフトJIS亜種で、CP932とも言います。
7bit 部分が論理的には US-ASCIIであり、また Windows の機種依存文字を扱うことができます。
@see http://www2d.biglobe.ne.jp/~msyk/charcode/cp932/index.html,
http://legacy-encoding.osdn.jp/wiki/index.php?cp932 -
Encoding
:: Windows _ 1250 -> Encoding (391.0) -
Windows-1250 エンコーディング。
Windows-1250 エンコーディング。
ISO8859-2 の亜種です。
@see http://www.microsoft.com/globaldev/reference/sbcs/1250.mspx,
https://en.wikipedia.org/wiki/Windows-1250 -
Encoding
:: Windows _ 1258 -> Encoding (391.0) -
WINDOWS-1258 エンコーディング。
WINDOWS-1258 エンコーディング。
ベトナム語を扱う 8bit single-byteエンコーディングです。
@see https://en.wikipedia.org/wiki/Windows-1258 -
Encoding
:: Windows _ 31J -> Encoding (391.0) -
Windows-31J、Windows で用いられる、シフトJIS亜種で、CP932とも言います。
Windows-31J、Windows で用いられる、シフトJIS亜種で、CP932とも言います。
7bit 部分が論理的には US-ASCIIであり、また Windows の機種依存文字を扱うことができます。
@see http://www2d.biglobe.ne.jp/~msyk/charcode/cp932/index.html,
http://legacy-encoding.osdn.jp/wiki/index.php?cp932 -
String
# b -> String (391.0) -
self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
//emlist[例][ruby]{
'abc123'.encoding # => #<Encoding:UTF-8>
'abc123'.b.encoding # => #<Encoding:ASCII-8BIT>
//} -
BasicObject
# _ _ send _ _ (name , *args) -> object (379.0) -
オブジェクトのメソッド name を args を引数にして呼び出し、メソッドの結果を返します。
オブジェクトのメソッド name を args を引数にして呼び出し、メソッドの結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
@param name 呼び出すメソッドの名前。 Symbol または文字列で指定します。
@param args メソッドに渡す任意個の引数
//emlist[例][ruby]{
class Mail
def delete(*args)
"(Mail#delete) - delete " + args.join(',')
end
def send(name, *args)
"(Mail#send) -... -
BasicObject
# _ _ send _ _ (name , *args) { . . . . } -> object (379.0) -
オブジェクトのメソッド name を args を引数にして呼び出し、メソッドの結果を返します。
オブジェクトのメソッド name を args を引数にして呼び出し、メソッドの結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
@param name 呼び出すメソッドの名前。 Symbol または文字列で指定します。
@param args メソッドに渡す任意個の引数
//emlist[例][ruby]{
class Mail
def delete(*args)
"(Mail#delete) - delete " + args.join(',')
end
def send(name, *args)
"(Mail#send) -... -
Dir
. new(path) -> Dir (379.0) -
path に対するディレクトリストリームをオープンして返します。
path に対するディレクトリストリームをオープンして返します。
ブロックを指定して呼び出した場合は、ディレクトリストリームを
引数としてブロックを実行します。ブロックの実行が終了すると、
ディレクトリは自動的にクローズされます。
ブロックの実行結果を返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@rai... -
Dir
. new(path , encoding: Encoding . find("filesystem")) -> Dir (379.0) -
path に対するディレクトリストリームをオープンして返します。
path に対するディレクトリストリームをオープンして返します。
ブロックを指定して呼び出した場合は、ディレクトリストリームを
引数としてブロックを実行します。ブロックの実行が終了すると、
ディレクトリは自動的にクローズされます。
ブロックの実行結果を返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@rai... -
Dir
. open(path) -> Dir (379.0) -
path に対するディレクトリストリームをオープンして返します。
path に対するディレクトリストリームをオープンして返します。
ブロックを指定して呼び出した場合は、ディレクトリストリームを
引数としてブロックを実行します。ブロックの実行が終了すると、
ディレクトリは自動的にクローズされます。
ブロックの実行結果を返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@rai... -
Dir
. open(path) {|dir| . . . } -> object (379.0) -
path に対するディレクトリストリームをオープンして返します。
path に対するディレクトリストリームをオープンして返します。
ブロックを指定して呼び出した場合は、ディレクトリストリームを
引数としてブロックを実行します。ブロックの実行が終了すると、
ディレクトリは自動的にクローズされます。
ブロックの実行結果を返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@rai... -
Dir
. open(path , encoding: Encoding . find("filesystem")) -> Dir (379.0) -
path に対するディレクトリストリームをオープンして返します。
path に対するディレクトリストリームをオープンして返します。
ブロックを指定して呼び出した場合は、ディレクトリストリームを
引数としてブロックを実行します。ブロックの実行が終了すると、
ディレクトリは自動的にクローズされます。
ブロックの実行結果を返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@rai... -
Dir
. open(path , encoding: Encoding . find("filesystem")) {|dir| . . . } -> object (379.0) -
path に対するディレクトリストリームをオープンして返します。
path に対するディレクトリストリームをオープンして返します。
ブロックを指定して呼び出した場合は、ディレクトリストリームを
引数としてブロックを実行します。ブロックの実行が終了すると、
ディレクトリは自動的にクローズされます。
ブロックの実行結果を返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@rai... -
Encoding
:: CP949 -> Encoding (379.0) -
CP949 エンコーディング。
CP949 エンコーディング。
EUC-KR に近い、韓国語を取り扱う multi-byte エンコーディングです。
@see Encoding::EUC_KR,
http://www.microsoft.com/globaldev/reference/dbcs/949.mspx,
https://en.wikipedia.org/wiki/EUC-KR#EUC-KR -
Encoding
:: Converter # last _ error -> Exception | nil (379.0) -
直前に変換器で発生した例外に相当する例外オブジェクトを返します。 直前の変換で例外が発生していない場合は nil を返します。
直前に変換器で発生した例外に相当する例外オブジェクトを返します。
直前の変換で例外が発生していない場合は nil を返します。
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
p ec.primitive_convert(src="\xf1abcd", dst="") #=> :invalid_byte_sequence
p ec.last_error #=> #<Encoding::InvalidByteSequenceError: "\xF1" followed by "a"... -
Encoding
:: Converter # replacement -> String (379.0) -
変換器に設定されている置換文字を返します。
変換器に設定されている置換文字を返します。
@return 変換器に設定されている置換文字
//emlist[][ruby]{
ec = Encoding::Converter.new("euc-jp", "us-ascii")
p ec.replacement #=> "?"
ec = Encoding::Converter.new("euc-jp", "utf-8")
p ec.replacement #=> "\uFFFD"
//} -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (379.0) -
エラー発生時に捨てられたバイト列を返します。
エラー発生時に捨てられたバイト列を返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump ... -
File
. ctime(filename) -> Time (379.0) -
状態が最後に変更された時刻を返します。 状態の変更とは chmod などによるものです。
状態が最後に変更された時刻を返します。
状態の変更とは chmod などによるものです。
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.ctime("testfile") # => 2017-11-30 22:40:49 +0900
File.chmod(0755, "testfile")
File.ctime("testfile") # => 2... -
File
. lchown(owner , group , *filename) -> Integer (379.0) -
File#chown と同様ですが、 シンボリックリンクに関してリンクそのもののオーナー、 グループを変更します。
File#chown と同様ですが、
シンボリックリンクに関してリンクそのもののオーナー、
グループを変更します。
@param filename ファイル名を表す文字列を指定します。
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。
@raise NotImplementedError lchown(2) を実装していないシステ... -
Integer
# fdiv(other) -> Numeric (379.0) -
self を other で割った商を Float で返します。 ただし Complex が関わる場合は例外です。 その場合も成分は Float になります。
self を other で割った商を Float で返します。
ただし Complex が関わる場合は例外です。
その場合も成分は Float になります。
@param other self を割る数を指定します。
例:
654321.fdiv(13731) # => 47.652829364212366
654321.fdiv(13731.24) # => 47.65199646936475
-1234567890987654321.fdiv(13731) # => -89910996357705.52
-1234567890987654... -
Integer
# round(ndigits = 0 , half: :up) -> Integer (379.0) -
self ともっとも近い整数を返します。
self ともっとも近い整数を返します。
@param ndigits 10進数での小数点以下の有効桁数を整数で指定します。
負の整数を指定した場合、小数点位置から左に少なくとも n 個の 0 が並びます。
@param half ちょうど半分の値の丸め方を指定します。
サポートされている値は以下の通りです。
* :up or nil: 0から遠い方に丸められます。
* :even: もっとも近い偶数に丸められます。
* :down: 0に近い方に丸められます。
//emlist[][ruby]{
1.round # =... -
Kernel
. # `(command) -> String (379.0) -
command を外部コマンドとして実行し、その標準出力を文字列として 返します。このメソッドは `command` の形式で呼ばれます。
command を外部コマンドとして実行し、その標準出力を文字列として
返します。このメソッドは `command` の形式で呼ばれます。
引数 command に対しダブルクォートで囲まれた文字列と同様の解釈と式展開を行った後、
コマンドとして実行します。
コマンドは評価されるたびに実行されます。コマンドの終了ステータスを得るには、$? を参照します。
コマンドの出力を得る必要がなく、単にコマンドを実行したいだけなら
Kernel.#system を使います。特に端末を制御するコマンドでは
`command` は失敗するかもしれません。
d:spec/literal#command ... -
Kernel
. # open(file , mode _ enc = "r" , perm = 0666) -> IO (379.0) -
file をオープンして、IO(Fileを含む)クラスのインスタンスを返します。
file をオープンして、IO(Fileを含む)クラスのインスタンスを返します。
ブロックが与えられた場合、指定されたファイルをオープンし、
生成した IO オブジェクトを引数としてブロックを実行します。
ブロックの終了時や例外によりブロックを脱出するとき、
ファイルをクローズします。ブロックを評価した結果を返します。
ファイル名 file が `|' で始まる時には続く文字列をコマンドとして起動し、
コマンドの標準入出力に対してパイプラインを生成します
ファイル名が "|-" である時、open は Ruby の子プロセス
を生成し、その子プロセスとの間のパイプ(IOオブジェクト)を... -
Kernel
. # open(file , mode _ enc = "r" , perm = 0666) {|io| . . . } -> object (379.0) -
file をオープンして、IO(Fileを含む)クラスのインスタンスを返します。
file をオープンして、IO(Fileを含む)クラスのインスタンスを返します。
ブロックが与えられた場合、指定されたファイルをオープンし、
生成した IO オブジェクトを引数としてブロックを実行します。
ブロックの終了時や例外によりブロックを脱出するとき、
ファイルをクローズします。ブロックを評価した結果を返します。
ファイル名 file が `|' で始まる時には続く文字列をコマンドとして起動し、
コマンドの標準入出力に対してパイプラインを生成します
ファイル名が "|-" である時、open は Ruby の子プロセス
を生成し、その子プロセスとの間のパイプ(IOオブジェクト)を... -
MatchData
# values _ at(*index) -> [String] (379.0) -
正規表現中の n 番目の括弧にマッチした部分文字列の配列を返します。
正規表現中の n 番目の括弧にマッチした部分文字列の配列を返します。
0 番目は $& のようにマッチした文字列全体を表します。
@param index インデックスを整数またはシンボル(名前付きキャプチャの場合)で 0 個以上指定します。
//emlist[例][ruby]{
m = /(foo)(bar)(baz)/.match("foobarbaz")
# same as m.to_a.values_at(...)
p m.values_at(0, 1, 2, 3, 4) # => ["foobarbaz", "foo", "bar", "baz", nil]
p m... -
Module
# <=>(other) -> Integer | nil (379.0) -
self と other の継承関係を比較します。
self と other の継承関係を比較します。
self と other を比較して、
self が other の子孫であるとき -1、
同一のクラス/モジュールのとき 0、
self が other の先祖であるとき 1
を返します。
継承関係にないクラス同士の比較では
nil を返します。
other がクラスやモジュールでなければ
nil を返します。
@param other 比較対象のクラスやモジュール
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
... -
Module
# instance _ methods(inherited _ too = true) -> [Symbol] (379.0) -
そのモジュールで定義されている public および protected メソッド名 の一覧を配列で返します。
そのモジュールで定義されている public および protected メソッド名
の一覧を配列で返します。
@param inherited_too false を指定するとそのモジュールで定義されているメソッドのみ返します。
@see Object#methods
//emlist[例1][ruby]{
class Foo
private; def private_foo() end
protected; def protected_foo() end
public; def public_foo() end
end
# あるクラスのインスタンス... -
Object
# methods(include _ inherited = true) -> [Symbol] (379.0) -
そのオブジェクトに対して呼び出せるメソッド名の一覧を返します。 このメソッドは public メソッドおよび protected メソッドの名前を返します。
そのオブジェクトに対して呼び出せるメソッド名の一覧を返します。
このメソッドは public メソッドおよび protected メソッドの名前を返します。
ただし特別に、引数が偽の時は Object#singleton_methods(false) と同じになっています。
@param include_inherited 引数が偽の時は Object#singleton_methods(false) と同じになります。
//emlist[例1][ruby]{
class Parent
private; def private_parent() end
protecte... -
Proc
# ===(*arg) -> () (379.0) -
手続きオブジェクトを実行してその結果を返します。
手続きオブジェクトを実行してその結果を返します。
引数の渡され方はオブジェクトの生成方法によって異なります。
詳しくは Proc#lambda? を参照してください。
「===」は when の所に手続きを渡せるようにするためのものです。
//emlist[例][ruby]{
def sign(n)
case n
when lambda{|n| n > 0} then 1
when lambda{|n| n < 0} then -1
else 0
end
end
p sign(-4) #=> -1
p sign(0) #=> 0
p sign(7) #=> 1... -
Proc
# [](*arg) -> () (379.0) -
手続きオブジェクトを実行してその結果を返します。
手続きオブジェクトを実行してその結果を返します。
引数の渡され方はオブジェクトの生成方法によって異なります。
詳しくは Proc#lambda? を参照してください。
「===」は when の所に手続きを渡せるようにするためのものです。
//emlist[例][ruby]{
def sign(n)
case n
when lambda{|n| n > 0} then 1
when lambda{|n| n < 0} then -1
else 0
end
end
p sign(-4) #=> -1
p sign(0) #=> 0
p sign(7) #=> 1... -
Proc
# call(*arg) -> () (379.0) -
手続きオブジェクトを実行してその結果を返します。
手続きオブジェクトを実行してその結果を返します。
引数の渡され方はオブジェクトの生成方法によって異なります。
詳しくは Proc#lambda? を参照してください。
「===」は when の所に手続きを渡せるようにするためのものです。
//emlist[例][ruby]{
def sign(n)
case n
when lambda{|n| n > 0} then 1
when lambda{|n| n < 0} then -1
else 0
end
end
p sign(-4) #=> -1
p sign(0) #=> 0
p sign(7) #=> 1... -
Proc
# yield(*arg) -> () (379.0) -
手続きオブジェクトを実行してその結果を返します。
手続きオブジェクトを実行してその結果を返します。
引数の渡され方はオブジェクトの生成方法によって異なります。
詳しくは Proc#lambda? を参照してください。
「===」は when の所に手続きを渡せるようにするためのものです。
//emlist[例][ruby]{
def sign(n)
case n
when lambda{|n| n > 0} then 1
when lambda{|n| n < 0} then -1
else 0
end
end
p sign(-4) #=> -1
p sign(0) #=> 0
p sign(7) #=> 1... -
Range
# cover?(obj) -> bool (379.0) -
obj が範囲内に含まれている時に true を返します。
obj が範囲内に含まれている時に true を返します。
Range#include? と異なり <=> メソッドによる演算により範囲内かどうかを判定します。
Range#include? は原則として離散値を扱い、
Range#cover? は連続値を扱います。
(数値については、例外として Range#include? も連続的に扱います。)
Range#exclude_end?がfalseなら「begin <= obj <= end」を、
trueなら「begin <= obj < end」を意味します。
@param obj 比較対象のオブジェクトを指定します。
//eml... -
Rational
# ceil(precision = 0) -> Integer | Rational (379.0) -
自身と等しいかより大きな整数のうち最小のものを返します。
自身と等しいかより大きな整数のうち最小のものを返します。
@param precision 計算結果の精度
@raise TypeError precision に整数以外のものを指定すると発生します。
//emlist[例][ruby]{
Rational(3).ceil # => 3
Rational(2, 3).ceil # => 1
Rational(-3, 2).ceil # => -1
//}
precision を指定した場合は指定した桁数の数値と、上述の性質に最も近い整
数か Rational を返します。
//emlist[例][ruby]{
Ra... -
Rational
# to _ i -> Integer (379.0) -
小数点以下を切り捨てて値を整数に変換します。
小数点以下を切り捨てて値を整数に変換します。
@param precision 計算結果の精度
@raise TypeError precision に整数以外のものを指定すると発生します。
//emlist[例][ruby]{
Rational(2, 3).to_i # => 0
Rational(3).to_i # => 3
Rational(300.6).to_i # => 300
Rational(98, 71).to_i # => 1
Rational(-31, 2).to_i # => -15
//}
precision を指定した場合は指定した桁数で切り... -
Rational
# truncate(precision = 0) -> Rational | Integer (379.0) -
小数点以下を切り捨てて値を整数に変換します。
小数点以下を切り捨てて値を整数に変換します。
@param precision 計算結果の精度
@raise TypeError precision に整数以外のものを指定すると発生します。
//emlist[例][ruby]{
Rational(2, 3).to_i # => 0
Rational(3).to_i # => 3
Rational(300.6).to_i # => 300
Rational(98, 71).to_i # => 1
Rational(-31, 2).to_i # => -15
//}
precision を指定した場合は指定した桁数で切り... -
Regexp
# ===(string) -> bool (379.0) -
文字列 string との正規表現マッチを行います。 マッチした場合は真を返します。
文字列 string との正規表現マッチを行います。
マッチした場合は真を返します。
string が文字列でもシンボルでもない場合には false を返します。
このメソッドは主にcase文での比較に用いられます。
@param string マッチ対象文字列
//emlist[例][ruby]{
a = "HELLO"
case a
when /\A[a-z]*\z/; puts "Lower case"
when /\A[A-Z]*\z/; puts "Upper case"
else; puts "Mixed case"
end
# => Upper ... -
Regexp
# to _ s -> String (379.0) -
正規表現の文字列表現を生成して返します。返される文字列は他の正規表 現に埋め込んでもその意味が保持されるようになっています。
正規表現の文字列表現を生成して返します。返される文字列は他の正規表
現に埋め込んでもその意味が保持されるようになっています。
//emlist[][ruby]{
re = /foo|bar|baz/i
p re.to_s # => "(?i-mx:foo|bar|baz)"
p /#{re}+/o # => /(?i-mx:foo|bar|baz)+/
//}
ただし、後方参照を含む正規表現は意図通りにはならない場合があります。
この場合は名前付きキャプチャを使用すると影響を受けにくくなります。
//emlist[][ruby]{
re = /(foo|bar)\1... -
String
# count(*chars) -> Integer (379.0) -
chars で指定された文字が文字列 self にいくつあるか数えます。
chars で指定された文字が文字列 self にいくつあるか数えます。
検索する文字を示す引数 chars の形式は tr(1) と同じです。
つまり、「"a-c"」は文字 a から c を意味し、
「"^0-9"」のように文字列の先頭が「^」の場合は
指定文字以外を意味します。
文字「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
同様に、「^」も文字列の先頭にあるときだけ否定の効果を発揮します。
また、「-」「^」「\」は
バックスラッシュ (「\」) によりエスケープできます。
引数を複数指定した場合は、
すべての引数にマッチした文字だけを数えます。
@para... -
String
# delete!(*strs) -> self | nil (379.0) -
self から strs に含まれる文字を破壊的に取り除きます。
self から strs に含まれる文字を破壊的に取り除きます。
str の形式は tr(1) と同じです。
つまり、「a-c」は a から c を意味し、"^0-9" のように
文字列の先頭が「^」の場合は指定文字以外を意味します。
「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
「^」も文字列先頭にあるときだけ否定の効果を発揮します。
また、「-」「^」「\」はバックスラッシュ (「\」)
によってエスケープできます。
なお、引数を複数指定した場合は、
すべての引数にマッチする文字だけが削除されます。
@return 通常は self を返しますが、何も変更が起こ... -
String
# delete(*strs) -> String (379.0) -
self から strs に含まれる文字を取り除いた文字列を生成して返します。
self から strs に含まれる文字を取り除いた文字列を生成して返します。
str の形式は tr(1) と同じです。
つまり、`a-c' は a から c を意味し、"^0-9" のように
文字列の先頭が `^' の場合は指定文字以外を意味します。
「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
「^」も文字列の先頭にあるときだけ効果を発揮します。
また、「-」「^」「\」はバックスラッシュ (「\」)
によってエスケープできます。
なお、引数を複数指定した場合は、
すべての引数にマッチする文字だけが削除されます。
@param strs 削除する文字列を... -
String
# encoding -> Encoding (379.0) -
文字列のエンコーディング情報を表現した Encoding オブジェクトを返します。
文字列のエンコーディング情報を表現した Encoding オブジェクトを返します。
//emlist[例][ruby]{
# encoding: utf-8
utf8_str = "test"
euc_str = utf8_str.encode("EUC-JP")
utf8_str.encoding # => #<Encoding:UTF-8>
euc_str.encoding # => #<Encoding:EUC-JP>
//}
@see Encoding -
String
# tr _ s!(pattern , replace) -> self | nil (379.0) -
文字列の中に pattern 文字列に含まれる文字が存在したら、 replace 文字列の対応する文字に置き換えます。さらに、 置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
文字列の中に pattern 文字列に含まれる文字が存在したら、
replace 文字列の対応する文字に置き換えます。さらに、
置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
pattern の形式は tr(1) と同じです。
つまり「a-c」は a から c を意味し、
"^0-9" のように文字列の先頭が「^」の場合は指定した文字以外が置換の対象になります。
replace でも「-」を使って範囲を指定できます。
//emlist[][ruby]{
p "gooooogle".tr_s("a-z", "A-Z") # => "GOGLE"
//}
「... -
String
# tr _ s(pattern , replace) -> String (379.0) -
文字列の中に pattern 文字列に含まれる文字が存在したら、 replace 文字列の対応する文字に置き換えます。さらに、 置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
文字列の中に pattern 文字列に含まれる文字が存在したら、
replace 文字列の対応する文字に置き換えます。さらに、
置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
pattern の形式は tr(1) と同じです。
つまり「a-c」は a から c を意味し、
"^0-9" のように文字列の先頭が「^」の場合は指定した文字以外が置換の対象になります。
replace でも「-」を使って範囲を指定できます。
「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
同様に、「^」もその効果は文字列の先頭にあるときだけです。
また、「-」、「^」... -
Thread
# add _ trace _ func(pr) -> Proc (379.0) -
スレッドにトレース用ハンドラを追加します。
スレッドにトレース用ハンドラを追加します。
追加したハンドラを返します。
@param pr トレースハンドラ(Proc オブジェクト)
//emlist[例][ruby]{
th = Thread.new do
class Trace
end
43.to_s
end
th.add_trace_func lambda {|*arg| p arg }
th.join
# => ["line", "example.rb", 4, nil, #<Binding:0x00007f98e107d0d8>, nil]
# => ["c-call", "example.rb", 4, ... -
Time
# +(other) -> Time (379.0) -
self より other 秒だけ後の時刻を返します。
self より other 秒だけ後の時刻を返します。
@param other 自身からの秒数を数値で指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t + (60 * 60 * 24) # => 2000-01-02 00:00:00 +0900
//} -
Time
# getgm -> Time (379.0) -
タイムゾーンを協定世界時に設定した Time オブジェクトを新しく 生成して返します。
タイムゾーンを協定世界時に設定した Time オブジェクトを新しく
生成して返します。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1) #=> 2000-01-01 20:15:01 +0900
p t.gmt? #=> false
p y = t.getgm #=> 2000-01-01 11:15:01 UTC
p y.gmt? #=> true
p t == y ... -
Time
# getutc -> Time (379.0) -
タイムゾーンを協定世界時に設定した Time オブジェクトを新しく 生成して返します。
タイムゾーンを協定世界時に設定した Time オブジェクトを新しく
生成して返します。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1) #=> 2000-01-01 20:15:01 +0900
p t.gmt? #=> false
p y = t.getgm #=> 2000-01-01 11:15:01 UTC
p y.gmt? #=> true
p t == y ... -
Time
# gmt? -> bool (379.0) -
self のタイムゾーンが協定世界時に設定されていれば真を返します。
self のタイムゾーンが協定世界時に設定されていれば真を返します。
//emlist[][ruby]{
p t = Time.local(2017,9,19,15,0,0) # => 2017-09-19 15:00:00 +0900
p t.utc? # => false
p utc_t = t.getutc # => 2017-09-19 06:00:00 UTC
p utc_t.utc? # => true
//} -
Time
# gmtime -> self (379.0) -
タイムゾーンを協定世界時に設定します。
タイムゾーンを協定世界時に設定します。
このメソッドを呼び出した後は時刻変換を協定世界時として行ないます。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある特定の
時刻までの経過秒は、システムがうるう秒を勘定するかどうかによって異
なる場合があります。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1)... -
Time
# succ -> Time (379.0) -
self に 1 秒足した Time オブジェクトを生成して返します。
self に 1 秒足した Time オブジェクトを生成して返します。
このメソッドは obsolete です。 self + 1 を代わりに使用してください。
//emlist[][ruby]{
t = Time.local(2000)
p t # => 2000-01-01 00:00:00 +0900
p t.succ # => 2000-01-01 00:00:01 +0900
//} -
Time
# utc -> self (379.0) -
タイムゾーンを協定世界時に設定します。
タイムゾーンを協定世界時に設定します。
このメソッドを呼び出した後は時刻変換を協定世界時として行ないます。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある特定の
時刻までの経過秒は、システムがうるう秒を勘定するかどうかによって異
なる場合があります。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1)... -
Time
# utc? -> bool (379.0) -
self のタイムゾーンが協定世界時に設定されていれば真を返します。
self のタイムゾーンが協定世界時に設定されていれば真を返します。
//emlist[][ruby]{
p t = Time.local(2017,9,19,15,0,0) # => 2017-09-19 15:00:00 +0900
p t.utc? # => false
p utc_t = t.getutc # => 2017-09-19 06:00:00 UTC
p utc_t.utc? # => true
//} -
Array
# <=>(other) -> -1 | 0 | 1 | nil (376.0) -
自身と other の各要素をそれぞれ順に <=> で比較していき、結果が 0 でなかった場合に その値を返します。各要素が等しく、配列の長さも等しい場合には 0 を返します。 各要素が等しいまま一方だけ配列の末尾に達した時、自身の方が短ければ -1 をそうでなければ 1 を返します。 other に配列以外のオブジェクトを指定した場合は nil を返します。
自身と other の各要素をそれぞれ順に <=> で比較していき、結果が 0 でなかった場合に
その値を返します。各要素が等しく、配列の長さも等しい場合には 0 を返します。
各要素が等しいまま一方だけ配列の末尾に達した時、自身の方が短ければ -1 をそうでなければ 1
を返します。
other に配列以外のオブジェクトを指定した場合は nil を返します。
@param other 自身と比較したい配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary メソッドによ
る暗黙の型変換を試みます。
//emlist[... -
Numeric
# <=>(other) -> -1 | 0 | 1 | nil (376.0) -
自身が other より大きい場合に 1 を、等しい場合に 0 を、小さい場合には -1 をそれぞれ返します。 自身と other が比較できない場合には nil を返します。
自身が other より大きい場合に 1 を、等しい場合に 0 を、小さい場合には -1 をそれぞれ返します。
自身と other が比較できない場合には nil を返します。
Numeric のサブクラスは、上の動作を満たすよう このメソッドを適切に再定義しなければなりません。
@param other 自身と比較したい数値を指定します。
//emlist[例][ruby]{
1 <=> 0 #=> 1
1 <=> 1 #=> 0
1 <=> 2 #=> -1
1 <=> "0" #=> nil
//} -
String
# [](nth) -> String | nil (376.0) -
nth 番目の文字を返します。 nth が負の場合は文字列の末尾から数えます。 つまり、 self.size + nth 番目の文字を返します。
nth 番目の文字を返します。
nth が負の場合は文字列の末尾から数えます。
つまり、 self.size + nth 番目の文字を返します。
nth が範囲外を指す場合は nil を返します。
@param nth 文字の位置を表す整数
@return 指定した位置の文字を表す String オブジェクト
//emlist[例][ruby]{
p 'bar'[2] # => "r"
p 'bar'[2] == ?r # => true
p 'bar'[-1] # => "r"
p 'bar'[3] # => nil
p 'bar'[-4] ... -
String
# [](nth , len) -> String | nil (376.0) -
nth 文字目から長さ len 文字の部分文字列を新しく作って返します。 nth が負の場合は文字列の末尾から数えます。
nth 文字目から長さ len 文字の部分文字列を新しく作って返します。
nth が負の場合は文字列の末尾から数えます。
@param nth 取得したい文字列の開始インデックスを整数で指定します。
@param len 取得したい文字列の長さを正の整数で指定します。
@return nth が範囲外を指す場合は nil を返します。
//emlist[例][ruby]{
str0 = "bar"
str0[2, 1] #=> "r"
str0[2, 0] #=> ""
str0[2, 100] #=> "r" (右側を超えても... -
String
# [](regexp , nth = 0) -> String (376.0) -
正規表現 regexp の nth 番目の括弧にマッチする最初の部分文字列を返します。 nth を省略したときや 0 の場合は正規表現がマッチした部分文字列全体を返します。 正規表現が self にマッチしなかった場合や nth に対応する括弧がないときは nil を返します。
正規表現 regexp の nth 番目の括弧にマッチする最初の部分文字列を返します。
nth を省略したときや 0 の場合は正規表現がマッチした部分文字列全体を返します。
正規表現が self にマッチしなかった場合や nth に対応する括弧がないときは nil を返します。
このメソッドを実行すると、
マッチ結果に関する情報が組み込み変数 $~ に設定されます。
@param regexp 取得したい文字列のパターンを示す正規表現
@param nth 取得したい正規表現レジスタのインデックス。整数
//emlist[例][ruby]{
p "foobar"[/b... -
String
# [](substr) -> String | nil (376.0) -
self が substr を含む場合、一致した文字列を新しく作って返します。 substr を含まなければ nil を返します。
self が substr を含む場合、一致した文字列を新しく作って返します。
substr を含まなければ nil を返します。
@param substr 取得したい文字列のパターン。文字列
//emlist[例][ruby]{
substr = "bar"
result = "foobar"[substr]
p result # => "bar"
p substr.equal?(result) # => false
//} -
String
# slice(nth) -> String | nil (376.0) -
nth 番目の文字を返します。 nth が負の場合は文字列の末尾から数えます。 つまり、 self.size + nth 番目の文字を返します。
nth 番目の文字を返します。
nth が負の場合は文字列の末尾から数えます。
つまり、 self.size + nth 番目の文字を返します。
nth が範囲外を指す場合は nil を返します。
@param nth 文字の位置を表す整数
@return 指定した位置の文字を表す String オブジェクト
//emlist[例][ruby]{
p 'bar'[2] # => "r"
p 'bar'[2] == ?r # => true
p 'bar'[-1] # => "r"
p 'bar'[3] # => nil
p 'bar'[-4] ... -
String
# slice(nth , len) -> String | nil (376.0) -
nth 文字目から長さ len 文字の部分文字列を新しく作って返します。 nth が負の場合は文字列の末尾から数えます。
nth 文字目から長さ len 文字の部分文字列を新しく作って返します。
nth が負の場合は文字列の末尾から数えます。
@param nth 取得したい文字列の開始インデックスを整数で指定します。
@param len 取得したい文字列の長さを正の整数で指定します。
@return nth が範囲外を指す場合は nil を返します。
//emlist[例][ruby]{
str0 = "bar"
str0[2, 1] #=> "r"
str0[2, 0] #=> ""
str0[2, 100] #=> "r" (右側を超えても... -
String
# slice(regexp , nth = 0) -> String (376.0) -
正規表現 regexp の nth 番目の括弧にマッチする最初の部分文字列を返します。 nth を省略したときや 0 の場合は正規表現がマッチした部分文字列全体を返します。 正規表現が self にマッチしなかった場合や nth に対応する括弧がないときは nil を返します。
正規表現 regexp の nth 番目の括弧にマッチする最初の部分文字列を返します。
nth を省略したときや 0 の場合は正規表現がマッチした部分文字列全体を返します。
正規表現が self にマッチしなかった場合や nth に対応する括弧がないときは nil を返します。
このメソッドを実行すると、
マッチ結果に関する情報が組み込み変数 $~ に設定されます。
@param regexp 取得したい文字列のパターンを示す正規表現
@param nth 取得したい正規表現レジスタのインデックス。整数
//emlist[例][ruby]{
p "foobar"[/b... -
String
# slice(substr) -> String | nil (376.0) -
self が substr を含む場合、一致した文字列を新しく作って返します。 substr を含まなければ nil を返します。
self が substr を含む場合、一致した文字列を新しく作って返します。
substr を含まなければ nil を返します。
@param substr 取得したい文字列のパターン。文字列
//emlist[例][ruby]{
substr = "bar"
result = "foobar"[substr]
p result # => "bar"
p substr.equal?(result) # => false
//} -
Symbol
# <=>(other) -> -1 | 0 | 1 | nil (376.0) -
self と other のシンボルに対応する文字列を ASCII コード順で比較して、 self が小さい時には -1、等しい時には 0、大きい時には 1 を返します。
self と other のシンボルに対応する文字列を ASCII コード順で比較して、
self が小さい時には -1、等しい時には 0、大きい時には 1 を返します。
other がシンボルではなく比較できない時には nil を返します。
@param other 比較対象のシンボルを指定します。
//emlist[][ruby]{
p :aaa <=> :xxx # => -1
p :aaa <=> :aaa # => 0
p :xxx <=> :aaa # => 1
p :foo <=> "foo" # => nil
//}
@see String#<=>, Symbo... -
Encoding
:: CP874 -> Encoding (373.0) -
Windows-874 エンコーディング。
Windows-874 エンコーディング。
タイ語を扱うエンコーディングで、ISO8859-11の亜種です。
@see Encoding::TIS_620, Encoding::ISO_8859_11,
http://www.microsoft.com/globaldev/reference/sbcs/874.mspx -
Encoding
:: ISO8859 _ 10 -> Encoding (373.0) -
ISO 8859-10 エンコーディング。
ISO 8859-10 エンコーディング。
北欧の言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO8859 _ 11 -> Encoding (373.0) -
ISO8859-11 エンコーディング。
ISO8859-11 エンコーディング。
タイ語を扱う 8bit single-byte エンコーディングです。
@see Encoding::TIS_620 -
Encoding
:: ISO8859 _ 13 -> Encoding (373.0) -
ISO8859-13 エンコーディング。
ISO8859-13 エンコーディング。
バルト語派の言語を扱う8bit single-byteエンコーディングです。
@see Encoding::Windows_1257 -
Encoding
:: ISO8859 _ 14 -> Encoding (373.0) -
ISO8859-14 エンコーディング。
ISO8859-14 エンコーディング。
ケルト語派の言語を扱う8bit single-byteエンコーディングです。
@see Encoding::Windows_1257 -
Encoding
:: ISO8859 _ 15 -> Encoding (373.0) -
ISO 8859-15 エンコーディング。
ISO 8859-15 エンコーディング。
ISO 8859-1 の改訂版です。 -
Encoding
:: ISO8859 _ 16 -> Encoding (373.0) -
ISO 8859-16 エンコーディング。
ISO 8859-16 エンコーディング。
東欧を中心とした地域の諸語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO8859 _ 2 -> Encoding (373.0) -
ISO8859-2 エンコーディング。
ISO8859-2 エンコーディング。
中東欧の言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO8859 _ 3 -> Encoding (373.0) -
ISO8859-3 エンコーディング。
ISO8859-3 エンコーディング。
トルコ語、マルタ語、エスペラントを扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO8859 _ 4 -> Encoding (373.0) -
ISO 8859-4 エンコーディング。
ISO 8859-4 エンコーディング。
北欧の言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO8859 _ 5 -> Encoding (373.0) -
ISO 8859-5 エンコーディング。
ISO 8859-5 エンコーディング。
キリル文字を用いる言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO8859 _ 6 -> Encoding (373.0) -
ISO8859-6 エンコーディング。
ISO8859-6 エンコーディング。
アラビア文字を扱う 8bit single-byte エンコーディングです。
@see Encoding::Windows_1256 -
Encoding
:: ISO8859 _ 7 -> Encoding (373.0) -
ISO8859-7 エンコーディング。
ISO8859-7 エンコーディング。
ギリシャ語を扱う 8bit single-byte エンコーディングです。
@see Encoding::Windows_1253 -
Encoding
:: ISO8859 _ 8 -> Encoding (373.0) -
ISO8859-8 エンコーディング。
ISO8859-8 エンコーディング。
ヘブライ語を扱う 8bit single-byte エンコーディングです。
@see Encoding::Windows_1255 -
Encoding
:: ISO _ 8859 _ 10 -> Encoding (373.0) -
ISO 8859-10 エンコーディング。
ISO 8859-10 エンコーディング。
北欧の言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO _ 8859 _ 11 -> Encoding (373.0) -
ISO8859-11 エンコーディング。
ISO8859-11 エンコーディング。
タイ語を扱う 8bit single-byte エンコーディングです。
@see Encoding::TIS_620 -
Encoding
:: ISO _ 8859 _ 13 -> Encoding (373.0) -
ISO8859-13 エンコーディング。
ISO8859-13 エンコーディング。
バルト語派の言語を扱う8bit single-byteエンコーディングです。
@see Encoding::Windows_1257 -
Encoding
:: ISO _ 8859 _ 14 -> Encoding (373.0) -
ISO8859-14 エンコーディング。
ISO8859-14 エンコーディング。
ケルト語派の言語を扱う8bit single-byteエンコーディングです。
@see Encoding::Windows_1257 -
Encoding
:: ISO _ 8859 _ 15 -> Encoding (373.0) -
ISO 8859-15 エンコーディング。
ISO 8859-15 エンコーディング。
ISO 8859-1 の改訂版です。 -
Encoding
:: ISO _ 8859 _ 16 -> Encoding (373.0) -
ISO 8859-16 エンコーディング。
ISO 8859-16 エンコーディング。
東欧を中心とした地域の諸語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO _ 8859 _ 2 -> Encoding (373.0) -
ISO8859-2 エンコーディング。
ISO8859-2 エンコーディング。
中東欧の言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO _ 8859 _ 3 -> Encoding (373.0) -
ISO8859-3 エンコーディング。
ISO8859-3 エンコーディング。
トルコ語、マルタ語、エスペラントを扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO _ 8859 _ 4 -> Encoding (373.0) -
ISO 8859-4 エンコーディング。
ISO 8859-4 エンコーディング。
北欧の言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO _ 8859 _ 5 -> Encoding (373.0) -
ISO 8859-5 エンコーディング。
ISO 8859-5 エンコーディング。
キリル文字を用いる言語を扱う 8bit single-byte エンコーディングです。 -
Encoding
:: ISO _ 8859 _ 6 -> Encoding (373.0) -
ISO8859-6 エンコーディング。
ISO8859-6 エンコーディング。
アラビア文字を扱う 8bit single-byte エンコーディングです。
@see Encoding::Windows_1256 -
Encoding
:: ISO _ 8859 _ 7 -> Encoding (373.0) -
ISO8859-7 エンコーディング。
ISO8859-7 エンコーディング。
ギリシャ語を扱う 8bit single-byte エンコーディングです。
@see Encoding::Windows_1253 -
Encoding
:: ISO _ 8859 _ 8 -> Encoding (373.0) -
ISO8859-8 エンコーディング。
ISO8859-8 エンコーディング。
ヘブライ語を扱う 8bit single-byte エンコーディングです。
@see Encoding::Windows_1255 -
Encoding
:: UTF8 _ DOCOMO -> Encoding (373.0) -
UTF8-DoCoMo エンコーディングです。
UTF8-DoCoMo エンコーディングです。
UTF-8 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。
@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/extention/index.html -
Encoding
:: UTF8 _ DoCoMo -> Encoding (373.0) -
UTF8-DoCoMo エンコーディングです。
UTF8-DoCoMo エンコーディングです。
UTF-8 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。
@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/extention/index.html -
Encoding
:: UTF8 _ SOFTBANK -> Encoding (373.0) -
UTF8-SoftBank エンコーディングです。
UTF8-SoftBank エンコーディングです。
UTF-8 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html -
Encoding
:: UTF8 _ SoftBank -> Encoding (373.0) -
UTF8-SoftBank エンコーディングです。
UTF8-SoftBank エンコーディングです。
UTF-8 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html -
Encoding
:: WINDOWS _ 874 -> Encoding (373.0) -
Windows-874 エンコーディング。
Windows-874 エンコーディング。
タイ語を扱うエンコーディングで、ISO8859-11の亜種です。
@see Encoding::TIS_620, Encoding::ISO_8859_11,
http://www.microsoft.com/globaldev/reference/sbcs/874.mspx -
Encoding
:: Windows _ 874 -> Encoding (373.0) -
Windows-874 エンコーディング。
Windows-874 エンコーディング。
タイ語を扱うエンコーディングで、ISO8859-11の亜種です。
@see Encoding::TIS_620, Encoding::ISO_8859_11,
http://www.microsoft.com/globaldev/reference/sbcs/874.mspx