別のキーワード
ライブラリ
- ビルトイン (1684)
- abbrev (1)
- bigdecimal (26)
-
bigdecimal
/ util (4) -
cgi
/ core (1) - csv (87)
- date (7)
- digest (7)
- drb (1)
- erb (8)
- etc (1)
- fiddle (2)
-
fiddle
/ import (3) - forwardable (4)
-
io
/ wait (2) -
irb
/ cmd / help (1) -
irb
/ cmd / load (3) -
irb
/ context (4) -
irb
/ xmp (2) - json (33)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (1) -
json
/ add / date _ time (1) -
json
/ add / exception (1) -
json
/ add / range (1) -
json
/ add / rational (1) -
json
/ add / regexp (1) -
json
/ add / struct (1) -
json
/ add / time (1) - kconv (1)
- logger (34)
- matrix (90)
- mkmf (7)
- monitor (6)
-
net
/ http (76) - open-uri (8)
- openssl (26)
- optparse (57)
- ostruct (2)
- pathname (48)
- pp (4)
- prime (13)
- psych (10)
- rake (55)
-
rake
/ loaders / makefile (1) -
rake
/ packagetask (15) -
rake
/ testtask (4) -
rdoc
/ parser / ruby (1) - resolv (2)
-
rexml
/ document (70) -
rexml
/ streamlistener (1) - ripper (7)
-
ripper
/ filter (2) -
ripper
/ lexer (3) - rubygems (1)
-
rubygems
/ commands / update _ command (1) -
rubygems
/ custom _ require (1) -
rubygems
/ gem _ path _ searcher (1) -
rubygems
/ installer (3) -
rubygems
/ requirement (11) -
rubygems
/ specification (11) -
rubygems
/ version (9) - socket (9)
- stringio (25)
- strscan (43)
- tsort (8)
- un (13)
- uri (3)
-
webrick
/ httprequest (1) - win32ole (9)
- zlib (2)
クラス
-
ARGF
. class (25) - Addrinfo (5)
- Array (197)
- BasicObject (14)
- BasicSocket (3)
- BigDecimal (27)
- Binding (7)
- CGI (1)
- CSV (32)
-
CSV
:: FieldInfo (3) -
CSV
:: Row (22) -
CSV
:: Table (28) - Class (7)
- Complex (39)
-
DRb
:: DRbUnknown (1) - Data (11)
- Date (7)
- DateTime (2)
-
Digest
:: Base (7) - Dir (16)
- ERB (8)
- Encoding (7)
-
Encoding
:: Converter (16) -
Encoding
:: InvalidByteSequenceError (2) -
Encoding
:: UndefinedConversionError (1) - Enumerator (16)
-
Enumerator
:: Lazy (35) -
Enumerator
:: Yielder (3) - Exception (12)
- FalseClass (5)
- Fiber (6)
-
Fiddle
:: Function (1) -
Fiddle
:: Pointer (1) - File (11)
-
File
:: Stat (42) - Float (46)
- FrozenError (1)
-
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: GemPathSearcher (1) -
Gem
:: Installer (3) -
Gem
:: Requirement (11) -
Gem
:: Specification (11) -
Gem
:: Version (9) - Hash (101)
- IO (59)
-
IRB
:: Context (4) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) - Integer (73)
-
JSON
:: Parser (2) -
JSON
:: State (18) - Logger (33)
-
Logger
:: Formatter (1) - MatchData (31)
- Matrix (63)
-
Matrix
:: LUPDecomposition (1) - Method (24)
- Module (86)
- Monitor (5)
-
Net
:: HTTP (21) -
Net
:: HTTPGenericRequest (8) -
Net
:: HTTPResponse (9) - NilClass (15)
- Numeric (49)
- Object (63)
-
ObjectSpace
:: WeakMap (1) -
OpenSSL
:: ASN1 :: ASN1Data (2) -
OpenSSL
:: BN (23) - OpenStruct (2)
- OptionParser (50)
- PP (2)
- Pathname (48)
- Prime (4)
-
Prime
:: EratosthenesGenerator (3) -
Prime
:: PseudoPrimeGenerator (4) - Proc (17)
-
Psych
:: Nodes :: Node (2) -
Psych
:: ScalarScanner (1) -
Psych
:: Stream (2) -
Psych
:: Visitors :: YAMLTree (3) -
RDoc
:: Parser :: Ruby (1) -
REXML
:: Attribute (3) -
REXML
:: Attributes (13) -
REXML
:: CData (2) -
REXML
:: Child (2) -
REXML
:: DocType (9) -
REXML
:: Document (3) -
REXML
:: Element (23) -
REXML
:: Elements (9) -
REXML
:: Entity (1) -
REXML
:: Instruction (2) -
REXML
:: Text (3) -
Rake
:: Application (9) -
Rake
:: DefaultLoader (1) -
Rake
:: FileList (17) -
Rake
:: FileTask (2) -
Rake
:: InvocationChain (3) -
Rake
:: MakefileLoader (1) -
Rake
:: NameSpace (2) -
Rake
:: PackageTask (15) -
Rake
:: TaskArguments (5) -
Rake
:: TestTask (4) - Random (8)
- Range (43)
- Rational (29)
- Refinement (1)
- Regexp (18)
-
Resolv
:: DNS (1) -
Resolv
:: DNS :: Name (1) - Ripper (7)
-
Ripper
:: Filter (2) -
Ripper
:: Lexer (3) -
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (11) - Set (44)
- SignalException (2)
- Socket (1)
- String (186)
- StringIO (25)
- StringScanner (43)
- Struct (27)
- Symbol (8)
- Thread (22)
-
Thread
:: Backtrace :: Location (7) -
Thread
:: ConditionVariable (2) -
Thread
:: Mutex (5) -
Thread
:: Queue (9) -
Thread
:: SizedQueue (6) - ThreadGroup (2)
- Time (58)
- TracePoint (18)
- TrueClass (5)
-
URI
:: MailTo (3) - UnboundMethod (14)
- UncaughtThrowError (3)
- Vector (26)
-
WEBrick
:: HTTPRequest (1) - WIN32OLE (3)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ METHOD (1) -
WIN32OLE
_ TYPE (2) -
WIN32OLE
_ TYPELIB (1) -
WIN32OLE
_ VARIANT (1) - XMP (1)
-
Zlib
:: GzipWriter (2)
モジュール
- Comparable (8)
- Enumerable (126)
-
Fiddle
:: Importer (3) - FileUtils (1)
- Forwardable (4)
- GC (1)
-
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (28)
- MonitorMixin (1)
-
Net
:: HTTPExceptions (1) -
Net
:: HTTPHeader (37) -
OpenURI
:: Meta (8) -
OptionParser
:: Arguable (7) -
REXML
:: StreamListener (1) -
Rake
:: Cloneable (2) -
Rake
:: TaskManager (13) - TSort (8)
キーワード
- ! (1)
- != (1)
- !~ (1)
- % (7)
- & (6)
- * (9)
- ** (4)
- + (10)
- +@ (2)
- - (8)
- -@ (5)
-
/ (5) - < (5)
- << (16)
- <= (5)
- <=> (16)
- == (27)
- === (13)
- =~ (4)
- > (5)
- >= (5)
- >> (5)
- JSON (1)
- [] (33)
- []= (22)
- ^ (5)
-
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ dump (2) -
_ load (1) - abbrev (1)
-
abort
_ on _ exception (1) -
abort
_ on _ exception= (1) - abs (6)
- abs2 (2)
- absolute? (1)
-
absolute
_ path (2) - accept (1)
- add (5)
- add? (1)
-
add
_ attribute (2) -
add
_ attributes (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ element (1) -
add
_ field (1) -
add
_ loader (1) -
add
_ namespace (2) -
add
_ row (1) -
add
_ runtime _ dependency (1) -
add
_ trace _ func (1) - adjugate (1)
- advise (1)
-
alias
_ method (1) - alive? (1)
- all? (6)
- allbits? (1)
- allocate (1)
-
allow
_ nan? (1) - ancestors (1)
- angle (3)
-
angle
_ with (1) - antisymmetric? (1)
- any? (6)
- anybits? (1)
- append (2)
-
append
_ as _ bytes (1) -
append
_ features (1) - arg (3)
-
arg
_ config (1) - argv (1)
- arity (3)
-
array
_ nl (1) -
array
_ nl= (1) -
as
_ list (1) - ascend (2)
-
ascii
_ compatible? (1) - asctime (1)
- assoc (2)
- at (1)
- atime (3)
- attr (3)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - attribute (1)
-
attribute
_ of (1) -
attributes
_ of (1) - autoclose? (1)
- autoload (1)
- autoload? (1)
- b (1)
- backtrace (2)
-
backtrace
_ locations (3) -
base
_ label (2) -
base
_ uri (1) - basename (1)
-
basic
_ auth (1) - begin (2)
-
beginning
_ of _ line? (1) - between? (1)
- bind (2)
-
bind
_ call (2) - binding (2)
- binmode (2)
- binread (1)
- birthtime (1)
-
bit
_ length (1) -
bit
_ set? (1) - blksize (1)
- blockdev? (1)
- blocks (1)
- body (2)
- body= (1)
-
body
_ stream (1) -
body
_ stream= (1) - bol? (1)
- broadcast (1)
- bsearch (4)
-
bsearch
_ index (2) - bump (1)
-
by
_ col (1) -
by
_ col! (1) -
by
_ col _ or _ row (1) -
by
_ col _ or _ row! (1) -
by
_ row (1) -
by
_ row! (1) - bytebegin (2)
- byteend (2)
- byteindex (1)
- byteoffset (2)
- byterindex (1)
- bytes (3)
- bytesize (1)
- byteslice (3)
- call (4)
-
callee
_ id (1) - canonname (1)
- capitalize (1)
- capitalize! (1)
- captures (1)
- casecmp (2)
- casecmp? (2)
- casefold? (1)
- cause (1)
- ceil (7)
- ceildiv (1)
- center (1)
- chain (1)
- chardev? (1)
- charpos (1)
- chars (2)
- charset (2)
- check (1)
-
check
_ circular? (1) -
check
_ until (1) - children (3)
- chmod (2)
- chomp (1)
- chomp! (1)
- chop (1)
- chop! (1)
- chown (2)
- chr (3)
- chunk (3)
-
chunk
_ while (1) - chunked? (1)
- 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) - classify (1)
- cleanpath (1)
- clear (7)
-
clear
_ bit! (1) -
clear
_ exclude (1) - clone (8)
- close (6)
-
close
_ read (1) -
close
_ write (1) - closed? (4)
- cmp (1)
- code (1)
- codepoints (2)
- coerce (6)
-
cofactor
_ expansion (1) -
col
_ sep (1) - collect (9)
- collect! (7)
- collect2 (2)
-
collect
_ concat (3) - column (2)
-
column
_ vectors (1) - combination (2)
-
comma
_ breakable (1) - compact (3)
- compact! (2)
-
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) -
compile
_ error (1) - component (1)
- concat (6)
- configure (1)
- conj (3)
- conjugate (3)
- connect (1)
-
connect
_ from (2) -
const
_ added (1) -
const
_ defined? (1) -
const
_ get (1) -
const
_ missing (1) -
const
_ set (1) -
const
_ source _ location (1) - constants (1)
- content (1)
-
content
_ encoding (1) -
content
_ length (1) -
content
_ length= (1) -
content
_ range (1) -
content
_ type (2) -
content
_ type= (1) - convert (4)
- converters (1)
- convpath (1)
- count (7)
- covector (1)
- cover? (2)
- cp (1)
-
create
_ makefile (1) -
create
_ rule (1) - crypt (1)
- ctime (4)
-
current
_ scope (1) - curry (4)
- cycle (4)
-
datetime
_ format (1) -
datetime
_ format= (2) - day (1)
- debug (2)
- debug? (1)
- deconstruct (4)
-
deconstruct
_ keys (7) - dedup (1)
-
def
_ class (1) -
def
_ delegator (1) -
def
_ instance _ delegator (1) -
def
_ method (1) -
def
_ module (1) - default (2)
- default= (1)
-
default
_ argv (1) -
default
_ argv= (1) -
default
_ event _ sources (1) -
default
_ proc (1) -
default
_ proc= (1) -
define
_ method (2) -
define
_ singleton _ method (2) -
define
_ task (1) -
defined
_ class (1) - delegate (1)
- delete (12)
- delete! (1)
- delete? (1)
-
delete
_ all (2) -
delete
_ at (1) -
delete
_ attribute (1) -
delete
_ element (1) -
delete
_ if (8) -
delete
_ namespace (1) -
delete
_ prefix (1) -
delete
_ prefix! (1) -
delete
_ suffix (1) -
delete
_ suffix! (1) - denominator (4)
-
deprecate
_ constant (1) - deq (2)
- descend (2)
-
destination
_ encoding (1) - det (1)
- detect (2)
- determinant (1)
- dev (1)
-
dev
_ major (1) -
dev
_ minor (1) - difference (2)
- dig (3)
- digest (1)
- digest! (1)
- digits (2)
- directory? (1)
- dirname (1)
- disable (2)
- disasm (1)
- disassemble (1)
- disjoint? (1)
- display (1)
- div (2)
- divide (2)
- divmod (3)
-
do
_ not _ reverse _ lookup (1) -
do
_ rubygems _ update (1) - downcase (1)
- downcase! (1)
- downto (2)
- drop (3)
-
drop
_ while (5) - dst? (1)
- dummy? (1)
- dump (1)
- dup (6)
- each (34)
-
each
_ attribute (1) -
each
_ byte (6) -
each
_ capitalized _ name (1) -
each
_ char (4) -
each
_ child (4) -
each
_ codepoint (6) -
each
_ cons (2) -
each
_ element _ with _ attribute (1) -
each
_ element _ with _ text (1) -
each
_ entry (4) -
each
_ filename (1) -
each
_ grapheme _ cluster (2) -
each
_ header (1) -
each
_ index (2) -
each
_ key (3) -
each
_ line (12) -
each
_ name (1) -
each
_ pair (4) -
each
_ slice (2) -
each
_ strongly _ connected _ component (2) -
each
_ strongly _ connected _ component _ from (2) -
each
_ value (3) -
each
_ with _ index (6) -
each
_ with _ object (2) - eager (1)
- egrep (1)
-
egrep
_ cpp (2) - eigen (1)
- eigensystem (1)
- element (1)
-
elements
_ to _ f (1) -
elements
_ to _ i (1) -
elements
_ to _ r (1) - empty? (8)
- enable (2)
- encode (3)
- encode! (2)
- encoding (4)
- end (2)
-
end
_ seen? (1) -
end
_ with? (2) - enter (1)
- entities (1)
- entity (2)
- entitydecl (1)
- entries (3)
-
entrywise
_ product (1) -
enum
_ for (4) - environment (1)
- eof (1)
- eof? (1)
- eos? (1)
- eql? (17)
- equal? (3)
- error (2)
- error? (1)
-
error
_ bytes (1) -
error
_ char (1) - eval (2)
-
eval
_ script (1) - even? (1)
- event (1)
- exact? (1)
- except (1)
- exception (2)
-
exclude
_ end? (1) -
excluded
_ from _ list? (1) - executable? (1)
-
executable
_ real? (1) - execute (4)
- exist? (1)
- existing (1)
- existing! (1)
- exit (1)
- ext (1)
- extend (1)
-
extend
_ object (1) - extended (1)
-
external
_ encoding (1) -
external
_ id (1) -
family
_ addrinfo (2) - fatal (2)
- fatal? (1)
- fcntl (1)
- fdatasync (1)
- fdiv (3)
- feed (1)
- fetch (10)
-
fetch
_ values (4) - field (1)
- field? (1)
-
field
_ row? (1) -
field
_ size _ limit (1) - file (1)
- file? (1)
- filename (4)
- filename= (1)
- fileno (2)
- fill (6)
- filter (9)
- filter! (4)
-
filter
_ map (3) - find (2)
-
find
_ all (3) -
find
_ index (9) - finish (2)
- finite? (3)
- first (6)
-
first
_ column (1) -
first
_ lineno (2) -
fixed
_ encoding? (1) -
flat
_ map (3) - flatten (3)
- flatten! (2)
- flock (1)
- floor (7)
- flush (1)
- fnmatch (1)
- force (1)
-
force
_ encoding (1) -
force
_ quotes? (1) -
form
_ data= (1) -
formatted
_ program _ filename (1) - formatter (1)
- formatter= (1)
- freeze (2)
- friday? (1)
- frozen? (1)
- ftype (1)
-
garbage
_ collect (1) - gcd (1)
- gcdlcm (1)
- gem (1)
- get (2)
- get2 (2)
-
get
_ attribute (1) -
get
_ attribute _ ns (1) -
get
_ byte (1) -
get
_ fields (1) -
get
_ text (1) - getbyte (4)
- getc (2)
- getch (1)
- getgm (1)
- getlocal (2)
- getopts (3)
- gets (5)
- getutc (1)
- gid (1)
- glob (2)
- gmt? (1)
-
gmt
_ offset (1) - gmtime (1)
- gmtoff (1)
-
grapheme
_ clusters (2) - grep (3)
-
grep
_ v (3) -
group
_ by (2) - grpowned? (1)
- gsub (4)
- gsub! (5)
-
hadamard
_ product (1) - handler= (1)
-
has
_ elements? (1) -
has
_ key? (1) -
has
_ value? (1) - hash (11)
-
have
_ framework (2) - head (1)
- head2 (2)
- header (2)
- header? (1)
-
header
_ convert (3) -
header
_ converters (1) -
header
_ row? (2) - headers (4)
- help (2)
- helpfile (1)
- hex (1)
- hexdigest (1)
- hexdigest! (1)
- hour (1)
- hstack (1)
-
http
_ version (1) - httpd (1)
- i (1)
-
ignore
_ deadlock= (1) - imag (3)
- imaginary (3)
- import (1)
-
import
_ methods (1) -
in
_ namespace (1) - include (1)
- include? (8)
- included (1)
-
included
_ modules (1) -
incomplete
_ input? (1) - indent (1)
- indent= (1)
- index (9)
- infinite? (3)
- info (2)
- info? (1)
- inherited (1)
- init (1)
- initialize (1)
-
initialize
_ copy (1) - inject (3)
- ino (1)
-
inplace
_ mode (1) -
inplace
_ mode= (1) - insert (2)
-
insert
_ output (1) - inspect (35)
- install (2)
-
install
_ rb (1) -
instance
_ delegate (1) -
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) -
instruction
_ sequence (1) -
int
_ from _ prime _ division (1) - integer? (2)
- intern (2)
-
internal
_ encoding (2) - intersect? (1)
- intersection (2)
- inv (1)
- inverse (1)
- invert (1)
- invkind (1)
-
is
_ a? (2) - isatty (1)
- isdst (1)
- iseuc (1)
- itself (1)
- j (1)
- jj (1)
- join (2)
-
json
_ creatable? (1) -
keep
_ if (4) - key (1)
- key? (3)
- keys (1)
-
kind
_ of? (2) - label (2)
- lambda? (1)
-
laplace
_ expansion (1) - last (4)
-
last
_ column (1) -
last
_ comment (1) -
last
_ description (1) -
last
_ description= (1) -
last
_ error (1) -
last
_ lineno (1) -
last
_ modified (1) - lazy (2)
- lcm (1)
- length (9)
- level (1)
- level= (1)
- lex (1)
-
lib
_ dirs _ for (1) - line (1)
- lineno (3)
- lines (2)
- list (1)
- ljust (1)
- ln (1)
- load (3)
- loader= (1)
-
local
_ address (1) -
local
_ host= (1) -
local
_ port= (1) -
local
_ variable _ defined? (1) -
local
_ variable _ get (1) -
local
_ variable _ set (1) -
local
_ variables (1) - localtime (2)
- locked? (1)
- log (2)
- lookup (1)
- lshift! (1)
- lstat (1)
- lstrip (1)
- lstrip! (1)
- lup (1)
-
lup
_ decomposition (1) - magnitude (6)
-
main
_ type (1) - map (9)
- map! (7)
- map2 (1)
-
marshal
_ dump (3) -
marshal
_ load (3) -
mask
_ bits! (1) - match (4)
- match? (4)
- matched (1)
- matched? (1)
-
matched
_ size (1) - max (13)
- max= (1)
-
max
_ by (4) -
max
_ nesting (1) -
max
_ nesting= (1) - mday (1)
- member? (5)
- members (2)
- merge (4)
- merge! (2)
- method (3)
-
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 (6)
-
minmax
_ by (2) - minor (2)
- mkdir (1)
- mkmf (1)
-
mod
_ add (1) -
mod
_ exp (1) -
mod
_ inverse (1) -
mod
_ mul (1) -
mod
_ sub (1) - mode (2)
-
module
_ eval (2) -
module
_ exec (1) -
module
_ function (3) - modulo (4)
- mon (1)
-
mon
_ enter (2) -
mon
_ exit (1) - monday? (1)
- month (1)
- mountpoint? (1)
- msg (1)
- mtime (2)
- mv (1)
- name (8)
- name= (2)
-
named
_ captures (2) - names (4)
- namespace (2)
- namespaces (2)
- nan? (1)
-
need
_ tar (1) -
need
_ tar= (1) -
need
_ tar _ bz2 (1) -
need
_ tar _ bz2= (1) -
need
_ tar _ gz (1) -
need
_ tar _ gz= (1) -
need
_ zip (1) -
need
_ zip= (1) - needed? (1)
- negative? (4)
- new (1)
-
new
_ scope (1) - next (4)
- next! (1)
-
next
_ element (1) -
next
_ float (1) -
next
_ sibling= (1) -
next
_ values (1) -
next
_ year (1) - nil? (1)
- nlink (1)
- nobits? (1)
- none? (7)
- nonzero? (2)
- norm (1)
- normalize (1)
- nsec (1)
-
num
_ bits (1) -
num
_ bytes (1) -
num
_ waiting (1) - numerator (4)
-
object
_ id (1) -
object
_ nl (1) -
object
_ nl= (1) - oct (1)
- odd? (1)
- offset (2)
-
ole
_ query _ interface (1) - on (12)
-
on
_ head (1) -
on
_ tail (1) - one? (6)
- ord (2)
- order (4)
- order! (4)
-
original
_ dir (1) -
original
_ name (2) - overlap? (1)
- owned? (2)
- owner (2)
- pack (2)
-
package
_ dir (1) -
package
_ dir= (1) -
package
_ dir _ path (1) -
package
_ files (1) -
package
_ files= (1) - parameters (3)
- parent (1)
- parse (6)
- parse! (2)
-
parse
_ csv (1) - partition (3)
- path (9)
- pathconf (1)
- pathmap (1)
- peek (2)
-
peek
_ values (1) - peep (1)
- permutation (2)
- permute (2)
- permute! (2)
- phase (3)
- pid (1)
- pipe? (1)
- platform= (1)
- pointer (1)
- pointer= (1)
- polar (2)
- pop (4)
- pos (3)
- pos= (4)
- positive? (3)
- post (2)
- post2 (2)
-
post
_ match (2) - pow (2)
-
pre
_ match (2) - pread (1)
- pred (1)
- prefix (1)
- prefixes (2)
- prepend (4)
-
prepend
_ features (1) - prepended (1)
- prerelease? (2)
-
pretty
_ print (3) -
pretty
_ print _ cycle (1) -
prev
_ float (1) -
prev
_ year (1) -
previous
_ sibling= (1) - prime? (1)
-
prime
_ division (2) -
prime
_ fasttest? (1) -
primitive
_ convert (4) -
primitive
_ errinfo (1) - print (3)
- printf (1)
- priority (1)
- priority= (1)
- private (4)
-
private
_ class _ method (2) -
private
_ constant (1) -
private
_ instance _ methods (1) -
private
_ method _ defined? (1) - product (2)
- progname (1)
- progname= (1)
-
program
_ name (1) -
program
_ name= (1) -
prompt
_ mode (1) -
prompt
_ mode= (1) -
proper
_ subset? (1) -
proper
_ superset? (1) -
protected
_ method _ defined? (1) -
proxy
_ basic _ auth (1) -
psych
_ y (1) - public (5)
-
public
_ class _ method (2) -
public
_ constant (1) -
public
_ instance _ method (1) -
public
_ method (1) -
public
_ method _ defined? (1) -
public
_ send (2) - push (3)
- putback (2)
- putc (1)
- puts (3)
- pwrite (1)
- query (1)
- quo (3)
-
quote
_ char (1) - r (1)
- raise (3)
-
raised
_ exception (1) - rakefile (1)
- rand (3)
- range (1)
- range= (2)
-
range
_ length (1) - rank (1)
- rassoc (2)
- rationalize (9)
- rdev (1)
-
rdev
_ major (1) -
rdev
_ minor (1) - read (3)
-
read
_ body (2) - readable? (1)
-
readable
_ real? (1) - readbyte (3)
- readchar (2)
- readline (2)
- readlines (5)
- real (3)
- real? (3)
- realdirpath (1)
- realpath (2)
- receiver (3)
- rect (3)
- rectangular (3)
- reduce (3)
- refine (1)
- regexp (1)
- regular? (1)
- rehash (1)
- reject (8)
- reject! (5)
- relative? (1)
-
relative
_ path _ from (1) - release (2)
- reload (1)
- remainder (3)
-
remote
_ address (1) -
remove
_ class _ variable (1) -
remove
_ const (1) -
remove
_ instance _ variable (1) -
remove
_ method (1) - reopen (5)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (4)
- replacement (1)
- replacement= (1)
- replicate (1)
-
report
_ on _ exception (1) -
report
_ on _ exception= (1) -
request
_ body _ permitted? (1) -
request
_ get (2) -
request
_ head (2) -
request
_ post (2) - require (1)
-
required
_ ruby _ version (1) -
required
_ ruby _ version= (1) -
required
_ rubygems _ version (1) -
required
_ rubygems _ version= (1) - reset (1)
- resolve (1)
-
respond
_ to? (1) -
respond
_ to _ missing? (1) - response (1)
-
response
_ body _ permitted? (1) - rest (1)
- rest? (1)
-
rest
_ size (1) - restsize (1)
- result (1)
- resume (1)
-
return
_ headers? (1) -
return
_ value (1) - reverse (2)
- reverse! (2)
-
reverse
_ each (6) - rewind (4)
- rindex (4)
- rjust (1)
- rm (1)
- rmdir (1)
- root (1)
- root? (1)
-
root
_ node (1) - rotate (1)
- rotate! (1)
- round (9)
- row (2)
-
row
_ sep (1) -
row
_ vectors (1) - rpartition (1)
- rshift! (1)
- rstrip (1)
- rstrip! (1)
-
ruby2
_ keywords (2) -
ruby
_ opts (1) -
ruby
_ opts= (1) -
rubygems
_ version (1) -
rubygems
_ version= (1) - run (2)
- sample (4)
-
satisfied
_ by? (1) - saturday? (1)
- scan (4)
-
scan
_ full (1) -
scan
_ until (1) - scrub (3)
- scrub! (3)
-
search
_ full (1) - sec (1)
- seed (1)
- seek (1)
- select (9)
- select! (4)
- self (1)
- send (2)
-
send
_ request (1) - separator (1)
- seplist (1)
-
set
_ backtrace (1) -
set
_ bit! (1) -
set
_ content _ type (1) -
set
_ debug _ output (1) -
set
_ encoding _ by _ bom (1) -
set
_ form _ data (1) -
set
_ range (3) -
set
_ trace _ func (1) - setbyte (1)
- setgid? (1)
- setproperty (2)
- setuid? (1)
-
sev
_ threshold (1) -
sev
_ threshold= (1) - shift (6)
- shuffle (2)
- shuffle! (2)
- sign (1)
- signal (1)
- signm (1)
- signo (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) - size (15)
- size? (1)
-
skew
_ symmetric? (1) - skip (2)
-
skip
_ blanks? (1) -
skip
_ until (1) - sleep (1)
- slice (10)
- slice! (9)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - socket? (1)
- solve (1)
- sort (4)
- sort! (2)
-
sort
_ by (2) -
sort
_ by! (2) - source (2)
-
source
_ encoding (1) -
source
_ location (4) - space (1)
- space= (1)
-
space
_ before (1) -
space
_ before= (1) - specific? (1)
- split (4)
- squeeze (1)
- squeeze! (1)
- src (1)
-
stand
_ alone? (1) - start (3)
-
start
_ with? (2) - stat (1)
- status (1)
- step (12)
- sticky? (1)
- stop? (1)
- store (1)
- strftime (1)
- string (3)
- string= (1)
- strip (1)
- strip! (1)
-
strongly
_ connected _ components (1) - struct (1)
- sub (5)
- sub! (4)
-
sub
_ ext (1) -
sub
_ type (1) - subclasses (1)
-
subdomain
_ of? (1) - subsec (1)
- subset? (1)
- subtract (1)
- succ (3)
- succ! (1)
- sum (5)
- summarize (2)
-
summary
_ indent (1) -
summary
_ indent= (1) -
summary
_ width (1) -
summary
_ width= (1) - sunday? (1)
-
super
_ method (1) - superclass (1)
- superset? (1)
- swapcase (1)
- swapcase! (1)
- symlink? (1)
- sync (1)
- synchronize (1)
-
synthesize
_ file _ task (1) - system (1)
- syswrite (1)
- tag (1)
- take (3)
-
take
_ while (6) - tally (2)
- tap (1)
- target (1)
- tasks (2)
- tell (2)
- terminate (1)
- text (1)
- text= (1)
- then (2)
-
thread
_ variable _ set (1) - thursday? (1)
- timeouts= (1)
- times (2)
-
to
_ a (18) -
to
_ ary (3) -
to
_ binary (1) -
to
_ bn (1) -
to
_ c (4) -
to
_ csv (3) -
to
_ d (4) -
to
_ enum (4) -
to
_ f (7) -
to
_ h (14) -
to
_ hash (5) -
to
_ i (8) -
to
_ int (3) -
to
_ json (19) -
to
_ mailtext (1) -
to
_ path (3) -
to
_ proc (6) -
to
_ r (7) -
to
_ regexp (1) -
to
_ rfc822text (1) -
to
_ ruby (2) -
to
_ s (44) -
to
_ set (2) -
to
_ str (2) -
to
_ string (1) -
to
_ sym (1) -
to
_ value (1) - tokenize (2)
-
top
_ level (1) -
top
_ level _ tasks (1) - touch (1)
- tr (2)
-
tr
_ s (1) -
tr
_ s! (1) - trace (1)
- transfer (1)
- transform (1)
-
transform
_ keys (3) -
transform
_ keys! (3) -
transform
_ values (2) -
transform
_ values! (2) - transpose (1)
- truncate (8)
-
try
_ lock (1) - tsort (1)
-
tsort
_ each (2) - tty? (1)
-
tty
_ output= (1) - tuesday? (1)
-
tv
_ nsec (1) -
tv
_ sec (1) -
tv
_ usec (1) - type (1)
-
type
_ params (1) - ucmp (1)
- uid (1)
- unbind (1)
-
unconverted
_ fields? (1) -
undef
_ method (1) - undump (1)
- ungetc (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - union (3)
- uniq (4)
- uniq! (2)
- unknown (2)
- unlink (1)
- unpack (1)
- unpack1 (1)
- unscan (1)
- unshift (1)
- upcase (1)
- upcase! (1)
- update (2)
- upto (3)
-
use
_ readline (1) -
use
_ readline? (1) - usec (1)
- using (1)
- utc (1)
- utc? (1)
-
utc
_ offset (1) -
valid
_ encoding? (1) - value (6)
- value= (2)
- value? (1)
- values (2)
-
values
_ at (5) - ver (1)
- version (2)
- vstack (1)
- wait (1)
-
wait
_ for _ cond (1) -
wait
_ readable (1) -
wait
_ writable (1) - wakeup (1)
- warn (3)
- warn? (1)
- warning (2)
- wday (1)
- wednesday? (1)
- with (1)
-
with
_ defaults (1) -
with
_ index (6) -
with
_ object (2) -
world
_ readable? (1) -
world
_ writable? (1) - writable? (1)
-
writable
_ real? (1) - write (3)
-
write
_ headers? (1) -
write
_ spec (1) - xmp (1)
- xpath (1)
- y (1)
- yday (1)
- year (1)
- yield (2)
-
yield
_ self (2) - zero? (4)
- zip (6)
- zone (1)
- | (6)
- ~ (2)
検索結果
先頭5件
-
Time
# sunday? -> bool (40.0) -
self の表す時刻が日曜日である場合に true を返します。 そうでない場合に false を返します。
self の表す時刻が日曜日である場合に true を返します。
そうでない場合に false を返します。
//emlist[][ruby]{
t = Time.local(1990, 4, 1) # => 1990-04-01 00:00:00 +0900
p t.sunday? # => true
//} -
Time
# thursday? -> bool (40.0) -
self の表す時刻が木曜日である場合に true を返します。 そうでない場合に false を返します。
self の表す時刻が木曜日である場合に true を返します。
そうでない場合に false を返します。
//emlist[][ruby]{
t = Time.local(1995, 12, 21) # => 1995-12-21 00:00:00 +0900
p t.thursday? # => true
//} -
Time
# to _ a -> Array (40.0) -
時刻を10要素の配列で返します。
時刻を10要素の配列で返します。
その要素は順序も含めて以下の通りです。
* sec: 秒 (整数 0-60) (60はうるう秒)
* min: 分 (整数 0-59)
* hour: 時 (整数 0-23)
* mday: 日 (整数)
* mon: 月 (整数 1-12)
* year: 年 (整数 2000年=2000)
* wday: 曜日 (整数 0-6)
* yday: 年内通算日 (整数 1-366)
* isdst: 夏時間であるかどうか (true/false)
* zone: タイムゾーン (文字列)
... -
Time
# to _ f -> Float (40.0) -
起算時からの経過秒数を浮動小数点数で返します。1 秒に満たない経過も 表現されます。
起算時からの経過秒数を浮動小数点数で返します。1 秒に満たない経過も
表現されます。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p "%10.6f" % t.to_f # => "946749845.000006"
p t.to_i # => 946749845
//} -
Time
# to _ i -> Integer (40.0) -
起算時からの経過秒数を整数で返します。
起算時からの経過秒数を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p "%10.6f" % t.to_f # => "946749845.000006"
p t.to_i # => 946749845
p t.tv_sec # => 946749845
//} -
Time
# to _ json(*args) -> String (40.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Time.now.to_json # => "{\"json_class\":\"Time\",\"s\":1544968675,\"n\... -
Time
# to _ r -> Rational (40.0) -
起算時からの経過秒数を有理数で返します。1 秒に満たない経過も 表現されます。
起算時からの経過秒数を有理数で返します。1 秒に満たない経過も
表現されます。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p t.to_r # => (473374922500003/500000)
//} -
Time
# to _ s -> String (40.0) -
時刻を文字列に変換した結果を返します。 以下のようにフォーマット文字列を使って strftime を呼び出すのと同じです。
時刻を文字列に変換した結果を返します。
以下のようにフォーマット文字列を使って strftime を呼び出すのと同じです。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t.to_s # => "2000-01-02 03:04:05 +0900"
p t.strftime("%Y-%m-%d %H:%M:%S %z") # => "2000-01-02 03:04:05 +0900"
p t.utc.to_s #... -
Time
# tuesday? -> bool (40.0) -
self の表す時刻が火曜日である場合に true を返します。 そうでない場合に false を返します。
self の表す時刻が火曜日である場合に true を返します。
そうでない場合に false を返します。
//emlist[][ruby]{
t = Time.local(1991, 2, 19) # => 1991-02-19 00:00:00 +0900
p t.tuesday? # => true
//} -
Time
# tv _ nsec -> Integer (40.0) -
時刻のナノ秒の部分を整数で返します。
時刻のナノ秒の部分を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p "%10.9f" % t.to_f # => "946749845.000005960"
p t.nsec # => 6000
//}
IEEE 754 浮動小数点数で表現できる精度が違うため、Time#to_fの最小
の桁とnsecの最小の桁は異なります。nsecで表される値の方が正確です。 -
Time
# tv _ sec -> Integer (40.0) -
起算時からの経過秒数を整数で返します。
起算時からの経過秒数を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p "%10.6f" % t.to_f # => "946749845.000006"
p t.to_i # => 946749845
p t.tv_sec # => 946749845
//} -
Time
# tv _ usec -> Integer (40.0) -
時刻のマイクロ秒の部分を整数で返します。
時刻のマイクロ秒の部分を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p "%10.6f" % t.to_f #=> "946749845.000006"
p t.usec #=> 6
//} -
Time
# usec -> Integer (40.0) -
時刻のマイクロ秒の部分を整数で返します。
時刻のマイクロ秒の部分を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p "%10.6f" % t.to_f #=> "946749845.000006"
p t.usec #=> 6
//} -
Time
# utc -> self (40.0) -
タイムゾーンを協定世界時に設定します。
タイムゾーンを協定世界時に設定します。
このメソッドを呼び出した後は時刻変換を協定世界時として行ないます。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある特定の
時刻までの経過秒は、システムがうるう秒を勘定するかどうかによって異
なる場合があります。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1)... -
Time
# utc? -> bool (40.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
# wday -> Integer (40.0) -
曜日を0(日曜日)から6(土曜日)の整数で返します。
曜日を0(日曜日)から6(土曜日)の整数で返します。
//emlist[][ruby]{
p sun = Time.new(2017, 9, 17, 10, 34, 15, '+09:00') # => 2017-09-17 10:34:15 +0900
p sun.wday # => 0
p mon = Time.new(2017, 9, 18, 10, 34, 15, '+09:00') # => 2017-09-18 10:34:15 +0900
p mon.wday ... -
Time
# wednesday? -> bool (40.0) -
self の表す時刻が水曜日である場合に true を返します。 そうでない場合に false を返します。
self の表す時刻が水曜日である場合に true を返します。
そうでない場合に false を返します。
//emlist[][ruby]{
t = Time.local(1993, 2, 24) # => 1993-02-24 00:00:00 +0900
p t.wednesday? # => true
//} -
Time
# year -> Integer (40.0) -
年を整数で返します。
年を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5) # => 2000-01-02 03:04:05 +0900
p t.year # => 2000
//} -
Time
# zone -> String (40.0) -
タイムゾーンを表す文字列を返します。
タイムゾーンを表す文字列を返します。
//emlist[][ruby]{
p Time.now.zone # => "JST"
//} -
TracePoint
# binding -> Binding | nil (40.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
発生したイベントによって生成された Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//} -
TracePoint
# callee _ id -> Symbol | nil (40.0) -
イベントが発生したメソッドの呼ばれた名前を Symbol で返します。 トップレベルであった場合は nil を返します。
イベントが発生したメソッドの呼ばれた名前を Symbol で返します。
トップレベルであった場合は nil を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
e... -
TracePoint
# eval _ script -> String | nil (40.0) -
script_compiledイベント発生時にコンパイルされたソースコードを返します。 ファイルから読み込んだ場合は、nilを返します。
script_compiledイベント発生時にコンパイルされたソースコードを返します。
ファイルから読み込んだ場合は、nilを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.eval_script # => "puts 'hello'"
end.enable do
eval("puts 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に... -
TracePoint
# event -> Symbol (40.0) -
発生したイベントの種類を Symbol で返します。
発生したイベントの種類を Symbol で返します。
発生するイベントの詳細については、TracePoint.new を参照してくださ
い。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call, :return) do |tp|
p tp.event
end
trace.enable
foo 1
# => :call
# :return
//} -
TracePoint
# inspect -> String (40.0) -
self の状態を人間に読みやすい文字列にして返します。
self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//} -
TracePoint
# lineno -> Integer (40.0) -
発生したイベントの行番号を返します。
発生したイベントの行番号を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call, :return) do |tp|
tp.lineno
end
trace.enable
foo 1
# => 1
# 3
//} -
TracePoint
# method _ id -> Symbol | nil (40.0) -
イベントが発生したメソッドの定義時の名前を Symbol で返します。 トップレベルであった場合は nil を返します。
イベントが発生したメソッドの定義時の名前を Symbol で返します。
トップレベルであった場合は nil を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
e... -
TracePoint
# parameters -> [object] (40.0) -
現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。 フォーマットは Method#parameters と同じです。
現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。
フォーマットは Method#parameters と同じです。
@raise RuntimeError :call、:return、:b_call、:b_return、:c_call、:c_return
イベントのためのイベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(a, b = 2)
end
TracePoint.new(:call) do |tp|
p tp.parameters # => a], [:opt, ... -
TracePoint
# path -> String (40.0) -
イベントが発生したファイルのパスを返します。
イベントが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//} -
TracePoint
# raised _ exception -> Exception (40.0) -
発生した例外を返します。
発生した例外を返します。
@raise RuntimeError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。
//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
trace.enable
begin
0/0
rescue
end
//} -
TracePoint
# return _ value -> object (40.0) -
メソッドやブロックの戻り値を返します。
メソッドやブロックの戻り値を返します。
@raise RuntimeError :return、:c_return、:b_return イベントのためのイベ
ントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:return) do |tp|
p tp.return_value # => 1
end
trace.enable
foo 1
//} -
TracePoint
# self -> object (40.0) -
イベントを発生させたオブジェクトを返します。
イベントを発生させたオブジェクトを返します。
以下のようにする事で同じ値を取得できます。
なお、self メソッドは binding が nil になる :c_call および :c_return イベントに対しても正しく動作します。
//emlist[例][ruby]{
trace.binding.eval('self')
//}
@see TracePoint#binding -
TrueClass
# &(other) -> bool (40.0) -
other が真なら true を, 偽なら false を返します。
other が真なら true を, 偽なら false を返します。
@param other 論理積を行なう式です。
& は再定義可能な演算子に分類されていますので、通常は true & other のように使われます。
//emlist[例][ruby]{
p true & true #=> true
p true & false #=> false
p true & nil #=> false
p true & (1 == 1) #=> true
p true & (1 + 1) #=> true
p true.&(true) #=> true... -
TrueClass
# ^(other) -> bool (40.0) -
other が真なら false を, 偽なら true を返します。
other が真なら false を, 偽なら true を返します。
@param other 排他的論理和を行なう式です。
^ は再定義可能な演算子に分類されていますので、通常は true ^ other のように使われます。
//emlist[例][ruby]{
p true ^ true #=> false
p true ^ false #=> true
p true ^ nil #=> true
p true ^ (1 == 1) #=> false
p true ^ (1 + 1) #=> false
p true.^(true) #=> ... -
TrueClass
# inspect -> String (40.0) -
常に文字列 "true" を返します。
常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//} -
TrueClass
# to _ s -> String (40.0) -
常に文字列 "true" を返します。
常に文字列 "true" を返します。
//emlist[例][ruby]{
true.to_s # => "true"
//} -
TrueClass
# |(other) -> bool (40.0) -
常に true を返します。
常に true を返します。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は true | other のように使われます。
//emlist[例][ruby]{
p true | true #=> true
p true | false #=> true
p true | nil #=> true
p true | (1 == 1) #=> true
p true | (1 + 1) #=> true
p true.|(true) #=> true
p true.|(false) #=> ... -
UnboundMethod
# ==(other) -> bool (40.0) -
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p a == b #=> true
c = Array.instance_method(:size)
p a == c ... -
UnboundMethod
# arity -> Integer (40.0) -
メソッドが受け付ける引数の数を返します。
メソッドが受け付ける引数の数を返します。
ただし、メソッドが可変長引数を受け付ける場合、負の整数
-(必要とされる引数の数 + 1)
を返します。C 言語レベルで実装されたメソッドが可変長引数を
受け付ける場合、-1 を返します。
//emlist[例][ruby]{
class C
def one; end
def two(a); end
def three(*a); end
def four(a, b); end
def five(a, b, *c); end
def six(a, b, *c, &d); end
end
p C.insta... -
UnboundMethod
# bind(obj) -> Method (40.0) -
self を obj にバインドした Method オブジェクトを生成して返します。
self を obj にバインドした Method オブジェクトを生成して返します。
@param obj 自身をバインドしたいオブジェクトを指定します。ただしバインドできるのは、
生成元のクラスかそのサブクラスのインスタンスのみです。
@raise TypeError objがbindできないオブジェクトである場合に発生します
//emlist[例][ruby]{
# クラスのインスタンスメソッドの UnboundMethod の場合
class Foo
def foo
"foo"
end
end
# UnboundMethod `m' を生... -
UnboundMethod
# bind _ call(recv , *args) -> object (40.0) -
self を recv に bind して args を引数として呼び出します。
self を recv に bind して args を引数として呼び出します。
self.bind(recv).call(*args) と同じ意味です。
//emlist[][ruby]{
puts Kernel.instance_method(:inspect).bind_call(BasicObject.new) # => #<BasicObject:0x000055c65e8ea7b8>
//}
@see UnboundMethod#bind, Method#call -
UnboundMethod
# bind _ call(recv , *args) { . . . } -> object (40.0) -
self を recv に bind して args を引数として呼び出します。
self を recv に bind して args を引数として呼び出します。
self.bind(recv).call(*args) と同じ意味です。
//emlist[][ruby]{
puts Kernel.instance_method(:inspect).bind_call(BasicObject.new) # => #<BasicObject:0x000055c65e8ea7b8>
//}
@see UnboundMethod#bind, Method#call -
UnboundMethod
# clone -> UnboundMethod (40.0) -
自身を複製した UnboundMethod オブジェクトを作成して返します。
自身を複製した UnboundMethod オブジェクトを作成して返します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = a.clone
a == b # => true
//} -
UnboundMethod
# eql?(other) -> bool (40.0) -
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p a == b #=> true
c = Array.instance_method(:size)
p a == c ... -
UnboundMethod
# hash -> Integer (40.0) -
自身のハッシュ値を返します。
自身のハッシュ値を返します。
//emlist[例][ruby]{
a = method(:==).unbind
b = method(:eql?).unbind
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//} -
UnboundMethod
# inspect -> String (40.0) -
self を読みやすい文字列として返します。
self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect -
UnboundMethod
# name -> Symbol (40.0) -
このメソッドの名前を返します。
このメソッドの名前を返します。
//emlist[例][ruby]{
a = String.instance_method(:size)
a.name # => :size
//} -
UnboundMethod
# original _ name -> Symbol (40.0) -
オリジナルのメソッド名を返します。
オリジナルのメソッド名を返します。
//emlist[例][ruby]{
class C
def foo; end
alias bar foo
end
C.instance_method(:bar).original_name # => :foo
//}
@see Method#original_name -
UnboundMethod
# owner -> Class | Module (40.0) -
このメソッドが定義されている class か module を返します。
このメソッドが定義されている class か module を返します。
//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//} -
UnboundMethod
# to _ s -> String (40.0) -
self を読みやすい文字列として返します。
self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect -
UncaughtThrowError
# tag -> object (40.0) -
Kernel.#throw に指定した tag を返します。
Kernel.#throw に指定した tag を返します。
//emlist[例:][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.tag # => ":uncaught_label"
end
//} -
UncaughtThrowError
# to _ s -> String (40.0) -
self を tag を含む文字列表現にして返します。
self を tag を含む文字列表現にして返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.to_s # => "uncaught throw :uncaught_label"
end
//} -
UncaughtThrowError
# value -> object (40.0) -
Kernel.#throw に指定した value を返します。
Kernel.#throw に指定した value を返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label, "uncaught_value"
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.value # => "uncaught_value"
end
//} -
Vector
# angle _ with(v) -> Float (40.0) -
v と self がなす角度を返します。
v と self がなす角度を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[1, 0].angle_with(Vector[0, 1]) # => Math::PI/2
//}
@param v このベクトルと self とがなす角度を計算します
@raise ZeroVectorError self もしくは v のどちらかが零ベクトルである場合に
発生します
@raise ExceptionForMatrix::ErrDimensionMismatch v と self の
ベクトルの次元が異なる場合に発... -
Vector
# collect -> Enumerator (40.0) -
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, -10]
v1 = Vector.elements(a)
p v1 # => Vector[1, 2, 3.5, -10]
v2 = v1.map{|x|
x * -1
}
p v2 # => Vector[-1, -2, -3.5, 10]
//} -
Vector
# collect {|x| . . . } -> Vector (40.0) -
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, -10]
v1 = Vector.elements(a)
p v1 # => Vector[1, 2, 3.5, -10]
v2 = v1.map{|x|
x * -1
}
p v2 # => Vector[-1, -2, -3.5, 10]
//} -
Vector
# collect! -> Enumerator (40.0) -
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2, 3]
p v.map!{ |el| el * 2 } #=> Vector[2, 4, 6]
p v #=> Vector[2, 4, 6]
//} -
Vector
# collect! {|element| . . . } -> self (40.0) -
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2, 3]
p v.map!{ |el| el * 2 } #=> Vector[2, 4, 6]
p v #=> Vector[2, 4, 6]
//} -
Vector
# collect2(v) -> Enumerator (40.0) -
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と、それに対応するインデックスを持つ引数 v (ベクトル or 配列)の要素との組に対して (2引数の) ブロックを評価し、その結果を要素として持つ配列を返します。
ブロックを省略した場合は Enumerator を返します。
@param v ブロック内で評価される(ベクトル or 配列)
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたとき... -
Vector
# collect2(v) {|x , y| . . . } -> Array (40.0) -
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と、それに対応するインデックスを持つ引数 v (ベクトル or 配列)の要素との組に対して (2引数の) ブロックを評価し、その結果を要素として持つ配列を返します。
ブロックを省略した場合は Enumerator を返します。
@param v ブロック内で評価される(ベクトル or 配列)
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたとき... -
Vector
# covector -> Matrix (40.0) -
Matrix オブジェクトへ変換します。
Matrix オブジェクトへ変換します。
列ベクトル (行列)、すなわち、(n, 1) 型の行列に変換します。
実際には Matrix.row_vector(self) を適用します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5]
p v # => Vector[2, 3, 5]
m = v.covector
p m # => Matrix[[2, 3, 5]]
//} -
Vector
# elements _ to _ f -> Vector (40.0) -
ベクトルの各成分をFloatに変換したベクトルを返します。
ベクトルの各成分をFloatに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_f) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2, 3, 5, 7, 9])
p v.elements_to_f
# => Vector[2.0, 3.0, 5.0, 7.0, 9.0]
//} -
Vector
# elements _ to _ i -> Vector (40.0) -
ベクトルの各成分をIntegerに変換したベクトルを返します。
ベクトルの各成分をIntegerに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_i) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2.5, 3.0, 5.01, 7])
p v.elements_to_i
# => Vector[2, 3, 5, 7]
//} -
Vector
# elements _ to _ r -> Vector (40.0) -
ベクトルの各成分をRationalに変換したベクトルを返します。
ベクトルの各成分をRationalに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_r) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2.5, 3.0, 5.75, 7])
p v.elements_to_r
# => Vector[(5/2), (3/1), (23/4), (7/1)]
//} -
Vector
# magnitude -> Float (40.0) -
ベクトルの大きさ(ノルム)を返します。
ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize -
Vector
# map -> Enumerator (40.0) -
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, -10]
v1 = Vector.elements(a)
p v1 # => Vector[1, 2, 3.5, -10]
v2 = v1.map{|x|
x * -1
}
p v2 # => Vector[-1, -2, -3.5, 10]
//} -
Vector
# map {|x| . . . } -> Vector (40.0) -
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, -10]
v1 = Vector.elements(a)
p v1 # => Vector[1, 2, 3.5, -10]
v2 = v1.map{|x|
x * -1
}
p v2 # => Vector[-1, -2, -3.5, 10]
//} -
Vector
# map! -> Enumerator (40.0) -
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2, 3]
p v.map!{ |el| el * 2 } #=> Vector[2, 4, 6]
p v #=> Vector[2, 4, 6]
//} -
Vector
# map! {|element| . . . } -> self (40.0) -
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ベクトルの各要素を順番にブロックに渡して評価し、その結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2, 3]
p v.map!{ |el| el * 2 } #=> Vector[2, 4, 6]
p v #=> Vector[2, 4, 6]
//} -
Vector
# map2(v) {|x , y| . . . } -> Vector (40.0) -
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つベクトルを返します。
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つベクトルを返します。
ベクトルの各要素と、それに対応するインデックスを持つ引数 (ベクトル or 配列) の要素との組に対して (2引数の) ブロックを評価した結果を、要素として持つベクトルを返します。
ブロックを省略した場合は Enumerator を返します。
@param v ブロック内で評価される(ベクトル or 配列)
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていた... -
Vector
# norm -> Float (40.0) -
ベクトルの大きさ(ノルム)を返します。
ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize -
Vector
# normalize -> Vector (40.0) -
自身を Vector#norm で正規化したベクトルを返します。
自身を Vector#norm で正規化したベクトルを返します。
@raise Vector::ZeroVectorError ベクトルが0である場合に発生します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 6, 9].normalize
# => Vector[0.18181818181818182, 0.5454545454545454, 0.8181818181818182]
v.norm # => 1.0
//}
@see Vector#norm -
Vector
# r -> Float (40.0) -
ベクトルの大きさ(ノルム)を返します。
ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize -
Vector
# to _ a -> Array (40.0) -
ベクトル(Vector)から配列 (Array) に変換します。
ベクトル(Vector)から配列 (Array) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_a
# => [2, 3, 5, 7, 9]
//} -
Vector
# to _ s -> String (40.0) -
ベクトル(Vector)から文字列 (String) に変換します。
ベクトル(Vector)から文字列 (String) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_s
# => "Vector[2, 3, 5, 7, 9]"
//} -
WEBrick
:: HTTPRequest # query -> Hash (40.0) -
リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。
リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。
ハッシュのキーも値も unescape されています。ただし multipart/form-data なフォームデータの場合には
ユーザが content-transfer-encoding ヘッダを見て適切に処理する必要があります。
ハッシュの値は正確には文字列ではなく String クラスのサブクラスである WEBrick::HTTPUtils::FormData
クラスのインスタンスです。
multipart/form-data なフォームデータであってもサイズの制限なく、通常のフォームデー... -
WIN32OLE
_ EVENT # handler=(obj) -> () (40.0) -
イベント処理を実行するオブジェクトを登録します。
イベント処理を実行するオブジェクトを登録します。
イベントハンドラをメソッドとして持つオブジェクトをイベントハンドラとし
て登録します。
イベントハンドラはイベント名に「on」を前置します。もし、イベントに対応
するonメソッドが実装されていなければmethod_missingが呼ばれます。イベン
ト名は大文字小文字を区別するため、正確な記述が必要です。
@param obj イベントに対応するメソッドを持つオブジェクト。イベント受信を
解除するにはnilを指定します。
class IeHandler
def initialize
@com... -
WIN32OLE
_ METHOD # invkind -> Integer (40.0) -
メソッドの種類を示すINVOKEKIND列挙値を取得します。
メソッドの種類を示すINVOKEKIND列挙値を取得します。
ここで言うメソッドの種類というのは、OLEオートメーションクライアントの記
述言語がどのような形式でサーバ呼び出しを記述すべきかを指定した属性値で
す。
@return メソッドのINVOKEKINDを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbooks')
method = WIN32OLE_METHOD.new(tobj, 'Add')
puts method.invkind # => 1
INVOKE... -
WIN32OLE
_ TYPE # helpfile -> String | nil (40.0) -
オブジェクトに関連付けられたヘルプファイルのフルパス名。
オブジェクトに関連付けられたヘルプファイルのフルパス名。
ここで返されたヘルプファイルを表示するには、
WIN32OLE#ole_show_helpメソッドを呼び出します。
オブジェクトがヘルプファイルを持たない場合はnilを返します。
@return オブジェクトに関連付けられたヘルプファイルのフルパス名を文字列で返します。
ヘルプファイルが未定義の場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts tobj.helpf... -
WIN32OLE
_ TYPELIB # path -> String (40.0) -
TypeLibのパス名を取得します。
TypeLibのパス名を取得します。
@return TypeLibのパス名を文字列で返します。この値はレジストリの登録値を
そのまま利用するため、Rubyのパス名形式(ディレクトリ区切りは
「/」)ではなく、Windowsのパス名形式(ディレクトリ区切りは「\」)
です。
@raise WIN32OLERuntimeError TypeLibの属性が読み取れない場合に通知します。
tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tli... -
Zlib
:: GzipWriter # close -> File (40.0) -
フッターを書き出し、GzipWriter オブジェクトをクローズします。close と finish の違いは Zlib::GzipFile#close, Zlib::GzipFile#finish を 参照して下さい。
フッターを書き出し、GzipWriter オブジェクトをクローズします。close と
finish の違いは Zlib::GzipFile#close, Zlib::GzipFile#finish を
参照して下さい。
注意: Ruby の finalizer の制約のため、GzipWriter オブジェクトは
必ずクローズしてください。そうしなければフッターを書き出すことが
できず、壊れた gzip ファイルを生成してしまう可能性があります。
require 'zlib'
def case_finish
filename='hoge1.gz'
gz =... -
Zlib
:: GzipWriter # finish -> File (40.0) -
フッターを書き出し、GzipWriter オブジェクトをクローズします。close と finish の違いは Zlib::GzipFile#close, Zlib::GzipFile#finish を 参照して下さい。
フッターを書き出し、GzipWriter オブジェクトをクローズします。close と
finish の違いは Zlib::GzipFile#close, Zlib::GzipFile#finish を
参照して下さい。
注意: Ruby の finalizer の制約のため、GzipWriter オブジェクトは
必ずクローズしてください。そうしなければフッターを書き出すことが
できず、壊れた gzip ファイルを生成してしまう可能性があります。
require 'zlib'
def case_finish
filename='hoge1.gz'
gz =... -
CSV
:: Row # []=(header , offset , value) (22.0) -
ヘッダの名前でフィールドを探し、値をセットします。
ヘッダの名前でフィールドを探し、値をセットします。
@param header ヘッダの名前を指定します。
@param offset このインデックスより後で、ヘッダの名前を探します。
重複しているヘッダがある場合に便利です。
@param value 値を指定します。
@see CSV::Row#field -
String
# sub!(pattern , hash) -> String (22.0) -
文字列中の pattern にマッチした部分をキーにして hash を引いた値で破壊的に置き換えます。
文字列中の pattern にマッチした部分をキーにして hash を引いた値で破壊的に置き換えます。
@param pattern 置き換える文字列のパターン
@param hash 置き換える文字列を与えるハッシュ
@return 置換した場合は self、置換しなかった場合は nil -
IO
# reopen(io) -> self (10.0) -
自身を指定された io に繋ぎ換えます。
自身を指定された io に繋ぎ換えます。
クラスも io に等しくなることに注意してください。
IO#pos, IO#lineno などは指定された io と等しくなります。
@param io 自身を繋ぎ換えたい IO オブジェクトを指定します。
@raise IOError 指定された io が close されている場合に発生します。 -
MatchData
# byteoffset(n) -> [Integer , Integer] | [nil , nil] (10.0) -
n 番目の部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
n 番目の部分文字列のバイト単位のオフセットの
配列 [start, end] を返します。
n番目の部分文字列がマッチしていなければ [nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#offset