種類
ライブラリ
- English (5)
- ビルトイン (667)
- base64 (1)
- benchmark (3)
- bigdecimal (8)
-
bigdecimal
/ ludcmp (1) - coverage (1)
- csv (17)
- erb (7)
- etc (1)
- fiber (1)
- fiddle (8)
-
fiddle
/ import (4) - fileutils (36)
-
io
/ wait (2) -
irb
/ cmd / help (1) -
irb
/ cmd / load (3) -
irb
/ context (2) -
irb
/ xmp (1) - json (15)
-
json
/ add / struct (1) - kconv (1)
- logger (17)
- matrix (38)
- mkmf (2)
-
net
/ http (24) - nkf (1)
- objspace (5)
- open-uri (8)
- open3 (1)
- openssl (79)
- optparse (26)
- pathname (9)
- pp (1)
- prettyprint (1)
- prime (8)
- psych (10)
- pty (1)
- rake (16)
-
rake
/ testtask (1) - rbconfig (1)
-
rdoc
/ parser / ruby (2) - resolv (2)
-
rexml
/ document (45) - rubygems (5)
-
rubygems
/ commands / update _ command (1) -
rubygems
/ config _ file (2) -
rubygems
/ custom _ require (1) -
rubygems
/ defaults (1) -
rubygems
/ platform (1) -
rubygems
/ requirement (16) -
rubygems
/ source _ index (2) -
rubygems
/ specification (11) -
rubygems
/ version (4) - securerandom (1)
- set (6)
- socket (4)
- stringio (8)
- strscan (12)
- timeout (4)
- tsort (4)
- uri (17)
-
webrick
/ httprequest (1) -
webrick
/ httpservlet / cgihandler (1) -
webrick
/ ssl (1) - win32ole (3)
クラス
-
ARGF
. class (2) - Addrinfo (1)
- Array (37)
- BasicObject (2)
- BasicSocket (1)
-
Benchmark
:: Tms (1) - BigDecimal (8)
- CSV (8)
-
CSV
:: Row (6) -
CSV
:: Table (3) - Class (2)
- Complex (13)
- Coverage (1)
- Dir (7)
- ERB (3)
- Encoding (5)
-
Encoding
:: Converter (14) -
Encoding
:: InvalidByteSequenceError (2) -
Encoding
:: UndefinedConversionError (1) - Enumerator (9)
-
Enumerator
:: Lazy (22) -
Enumerator
:: Yielder (2) - Exception (2)
- Fiber (2)
-
Fiddle
:: CStruct (1) -
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (1) -
Fiddle
:: Pointer (1) - File (12)
-
File
:: Stat (4) - Float (7)
-
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: ConfigFile (2) -
Gem
:: Platform (1) -
Gem
:: Requirement (16) -
Gem
:: SourceIndex (2) -
Gem
:: Specification (11) -
Gem
:: Version (4) - Hash (23)
- IO (17)
-
IRB
:: Context (2) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) - Integer (20)
-
JSON
:: Parser (2) -
JSON
:: State (3) - Logger (17)
- MatchData (2)
- Matrix (34)
-
Matrix
:: LUPDecomposition (1) - Method (5)
- Module (54)
-
Net
:: HTTP (11) -
Net
:: HTTPGenericRequest (8) -
Net
:: HTTPResponse (1) - Numeric (46)
- Object (26)
-
OpenSSL
:: ASN1 :: BMPString (2) -
OpenSSL
:: ASN1 :: BitString (2) -
OpenSSL
:: ASN1 :: Boolean (1) -
OpenSSL
:: ASN1 :: Enumerated (1) -
OpenSSL
:: ASN1 :: GeneralString (2) -
OpenSSL
:: ASN1 :: GeneralizedTime (2) -
OpenSSL
:: ASN1 :: GraphicString (2) -
OpenSSL
:: ASN1 :: IA5String (2) -
OpenSSL
:: ASN1 :: ISO64String (2) -
OpenSSL
:: ASN1 :: Integer (2) -
OpenSSL
:: ASN1 :: Null (1) -
OpenSSL
:: ASN1 :: NumericString (2) -
OpenSSL
:: ASN1 :: OctetString (2) -
OpenSSL
:: ASN1 :: PrintableString (2) -
OpenSSL
:: ASN1 :: Sequence (1) -
OpenSSL
:: ASN1 :: Set (1) -
OpenSSL
:: ASN1 :: T61String (2) -
OpenSSL
:: ASN1 :: UTCTime (2) -
OpenSSL
:: ASN1 :: UTF8String (2) -
OpenSSL
:: ASN1 :: UniversalString (2) -
OpenSSL
:: ASN1 :: VideotexString (2) -
OpenSSL
:: BN (3) - OptionParser (19)
- PP (1)
- Pathname (9)
- PrettyPrint (1)
- Prime (3)
-
Prime
:: EratosthenesGenerator (1) -
Prime
:: PseudoPrimeGenerator (4) - Proc (2)
-
Psych
:: Stream (2) -
Psych
:: Visitors :: YAMLTree (3) -
RDoc
:: Parser :: Ruby (2) -
REXML
:: Attribute (3) -
REXML
:: Attributes (13) -
REXML
:: CData (2) -
REXML
:: Child (1) -
REXML
:: DocType (4) -
REXML
:: Document (7) -
REXML
:: Element (8) -
REXML
:: Instruction (2) -
REXML
:: Text (2) -
Rake
:: Application (2) -
Rake
:: DefaultLoader (1) -
Rake
:: FileList (5) -
Rake
:: TaskArguments (2) -
Rake
:: TestTask (1) - Random (1)
- Range (3)
- Rational (5)
- Regexp (7)
-
Resolv
:: DNS (1) -
Resolv
:: DNS :: Name (1) - RubyVM (3)
-
RubyVM
:: InstructionSequence (21) - Set (6)
- SignalException (2)
- Socket (2)
- String (68)
- StringIO (8)
- StringScanner (12)
- Struct (13)
- Symbol (2)
- Thread (4)
-
Thread
:: Backtrace :: Location (1) -
Thread
:: Mutex (2) -
Thread
:: Queue (4) -
Thread
:: SizedQueue (6) - ThreadGroup (1)
- Time (28)
- TracePoint (2)
- TrueClass (2)
-
URI
:: FTP (1) -
URI
:: MailTo (3) - UnboundMethod (7)
- UncaughtThrowError (1)
- Vector (3)
-
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPServlet :: CGIHandler (1) - WIN32OLE (1)
-
WIN32OLE
_ TYPE (1) -
WIN32OLE
_ VARIANT (1) - XMP (1)
モジュール
- Base64 (1)
- Benchmark (2)
-
ERB
:: Util (4) - Enumerable (88)
- Etc (1)
- Fiddle (3)
-
Fiddle
:: Importer (3) - FileTest (2)
- FileUtils (37)
- GC (6)
-
GC
:: Profiler (2) - Gem (4)
-
Gem
:: QuickLoader (1) - JSON (8)
-
JSON
:: Generator :: GeneratorMethods :: String (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (38)
- LUSolve (1)
- Marshal (2)
-
Net
:: HTTPHeader (4) - ObjectSpace (7)
- Open3 (1)
-
OpenSSL
:: ASN1 (39) -
OpenURI
:: Meta (8) -
OptionParser
:: Arguable (7) - PTY (1)
- Process (4)
- Psych (4)
-
REXML
:: Security (2) -
Rake
:: TaskManager (1) - RakeFileUtils (4)
- RbConfig (1)
- SecureRandom (1)
- TSort (4)
- Timeout (2)
- URI (13)
キーワード
-
$ CHILD _ STATUS (1) -
$ DEFAULT _ INPUT (1) -
$ INPUT _ LINE _ NUMBER (1) -
$ NR (1) -
$ OUTPUT _ RECORD _ SEPARATOR (1) -
$ stdout (1) - % (3)
- * (1)
- ** (1)
- + (1)
- +@ (1)
- - (1)
-
/ (1) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - < (1)
- << (1)
- <= (1)
- <=> (2)
- == (1)
- === (1)
- =~ (1)
- > (1)
- >= (1)
- BMPString (2)
-
BUILD
_ RUBY _ PLATFORM (1) - BitString (2)
- BlockCaller (1)
- Boolean (1)
- CHR2FIX (1)
- Closure (1)
- ConverterNotFoundError (1)
- DEBUG (1)
-
DEFAULT
_ PARAMS (1) - DOSISH 対応 (1)
-
Data
_ Get _ Struct (1) -
Data
_ Make _ Struct (1) -
Data
_ Wrap _ Struct (1) - Enumerated (1)
- FORMAT (2)
- GeneralString (2)
- GeneralizedTime (2)
- GraphicString (2)
- IA5String (2)
-
INSTRUCTION
_ NAMES (1) - INT2NUM (1)
- ISO64String (2)
- Instruction (1)
- InstructionSequence (1)
- Integer (2)
- InvalidByteSequenceError (1)
- Marshal フォーマット (1)
-
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 1 . 0 (1) -
NEWS for Ruby 2
. 3 . 0 (1) - NKF (1)
- Null (1)
- Numeric (1)
- NumericString (2)
-
OPERATING
_ SYSTEM _ DEFAULTS (1) - OPS (1)
- OPTS (1)
- ObjectId (2)
- OctetString (2)
-
PLATFORM
_ DEFAULTS (1) - PrintableString (2)
- ROUNDS (1)
- RSTRING (1)
- RUBY (1)
-
RUBY
_ COPYRIGHT (1) -
RUBY
_ DESCRIPTION (1) -
RUBY
_ ENGINE (1) -
RUBY
_ ENGINE _ VERSION (1) -
RUBY
_ FREE (1) -
RUBY
_ PATCHLEVEL (1) -
RUBY
_ PLATFORM (1) -
RUBY
_ RELEASE _ DATE (1) -
RUBY
_ REVISION (1) -
RUBY
_ VERSION (1) - Requirement (1)
- Ruby (1)
- Ruby が動作するプラットフォーム (1)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
- Rubyの起動 (1)
- Ruby変更履歴 (1)
- Ruby用語集 (1)
- SINGLE (1)
- STDOUT (1)
- Sequence (1)
- Set (1)
- SizedQueue (1)
- String (1)
- StringValue (1)
- StringValuePtr (1)
- T61String (2)
- TreeBuilder (1)
- UTCTime (2)
- UTF8String (2)
- UndefinedConversionError (1)
- UniversalString (2)
- Unix (1)
- VideotexString (2)
- Win32ネイティブ版Rubyの互換性問題 (1)
- [] (3)
- []= (4)
-
_ builtin (1) -
_ dump (2) - abs (2)
- abs2 (2)
-
absolute
_ path (3) - add (2)
-
add
_ attribute (2) -
add
_ attributes (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ namespace (2) -
add
_ runtime _ dependency (1) - adjugate (1)
-
alias
_ method (1) - all? (1)
-
allocation
_ sourcefile (1) -
allocation
_ sourceline (1) - alphanumeric (1)
- angle (1)
- any? (1)
- arg (1)
-
arg
_ config (1) - arity (2)
-
as
_ list (1) - at (2)
- attr (3)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - attribute (1)
-
attribute
_ of (1) -
attributes
_ of (1) - autoclose? (1)
- autoload (2)
- autoload? (2)
-
base
_ label (1) -
base
_ uri (1) - basename (2)
-
basic
_ auth (1) - benchmark (1)
- bigdecimal (1)
-
bigdecimal
/ ludcmp (1) -
bigdecimal
/ util (1) - bind (2)
- body (1)
- body= (1)
-
body
_ stream (1) -
body
_ stream= (1) - bsearch (2)
-
bsearch
_ index (1) - build (2)
- bump (1)
- bytes (1)
- byteslice (3)
- call (1)
- captures (1)
- casecmp (2)
- casecmp? (2)
- cause (1)
- cd (2)
- ceil (1)
- charset (2)
- chdir (2)
- check (1)
-
check
_ circular? (1) -
check
_ until (1) - children (1)
- chmod (1)
-
chmod
_ R (1) - chown (4)
-
chown
_ R (1) - chunk (1)
-
chunk
_ while (1) -
class
_ eval (1) -
class
_ variable _ defined? (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) -
class
_ variables (1) -
clear
_ exclude (1) - close (1)
- cmp (1)
- coerce (1)
-
cofactor
_ expansion (1) - collect (3)
- collect! (1)
-
collect
_ concat (3) -
collect
_ method (1) - column (2)
-
column
_ vectors (1) - columns (1)
- combination (1)
- combine (1)
- commands (1)
-
compare
_ file (1) - compile (2)
-
compile
_ file (1) -
compile
_ option (1) -
compile
_ option= (1) - concat (2)
- configure (1)
- conj (1)
- conjugate (3)
-
const
_ defined? (1) -
const
_ get (1) -
const
_ missing (1) - constants (1)
- content (1)
-
content
_ encoding (1) -
content
_ type (1) - continuation (1)
- convert (1)
- copy (1)
- count (8)
-
count
_ nodes (1) -
count
_ objects _ size (1) -
count
_ tdata _ objects (1) - cp (1)
-
cp
_ r (1) - create (2)
-
create
_ makefile (1) - current (1)
- curry (2)
- cycle (3)
- debug (3)
-
decode
_ www _ form _ component (1) - default (3)
-
default
_ argv (1) -
default
_ argv= (1) -
default
_ event _ sources (1) -
default
_ external (1) -
default
_ external= (1) -
default
_ internal= (1) -
default
_ proc (1) -
define
_ method (2) -
defined
_ class (1) - delete (2)
-
delete
_ all (1) -
delete
_ attribute (1) -
delete
_ if (6) -
delete
_ suffix (1) -
delete
_ suffix! (1) - deq (1)
- det (1)
- detect (2)
- determinant (1)
- diagonal (1)
-
did
_ you _ mean (1) - difference (1)
- dig (1)
- disasm (2)
- disassemble (2)
- display (1)
- div (1)
- divmod (2)
- dlunwrap (1)
-
do
_ not _ reverse _ lookup (1) -
do
_ rubygems _ update (1) -
double
_ fig (1) - downto (1)
-
drop
_ while (4) - dummy? (1)
- dump (6)
-
dump
_ stream (1) - dup (1)
-
e
_ option _ supplied (1) - each (10)
-
each
_ attribute (1) -
each
_ byte (3) -
each
_ char (2) -
each
_ child (4) -
each
_ codepoint (3) -
each
_ cons (1) -
each
_ element _ with _ attribute (1) -
each
_ grapheme _ cluster (2) -
each
_ index (1) -
each
_ line (6) -
each
_ pair (6) -
each
_ slice (2) -
each
_ strongly _ connected _ component (1) -
each
_ strongly _ connected _ component _ from (2) -
each
_ with _ index (5) -
each
_ with _ object (2) - egrep (1)
- eigen (1)
- eigensystem (1)
- empty (1)
- encode (4)
-
encode
_ www _ form _ component (1) - encoding (1)
-
entity
_ expansion _ limit (1) -
entity
_ expansion _ limit= (1) -
entity
_ expansion _ text _ limit (2) -
entity
_ expansion _ text _ limit= (2) - entries (1)
-
entrywise
_ product (1) -
enum
_ for (2) - eql? (2)
- equal? (1)
- error (2)
-
error
_ bytes (1) -
error
_ char (1) - escape (1)
- eval (1)
- exact? (1)
-
excluded
_ from _ list? (1) - executable? (1)
-
executable
_ real? (2) - execute (4)
- exit (1)
- exit! (1)
- extract (4)
- fail (2)
-
fast
_ unparse (1) - fatal (2)
- fdiv (1)
- feed (1)
- fetch (2)
- field (1)
- filter (2)
- find (2)
-
find
_ all (3) -
find
_ class _ path (1) -
find
_ index (6) - finish (1)
- finite? (1)
- first (2)
-
first
_ lineno (1) -
fixed
_ encoding? (1) -
flat
_ map (3) - floor (1)
- flush (1)
-
force
_ encoding (1) - foreach (4)
- format (2)
-
from
_ gems _ in (1) -
from
_ yaml (1) -
garbage
_ collect (2) - gem (1)
-
get
_ attribute (1) -
get
_ attribute _ ns (1) -
get
_ byte (1) -
get
_ print (1) - getbyte (1)
- getch (1)
- getlocal (1)
- getopts (1)
- getutc (1)
- gm (2)
-
grapheme
_ clusters (2) - grep (2)
-
grep
_ v (2) -
group
_ by (2) - groups (1)
- gsub (6)
- gsub! (5)
- h (1)
-
hadamard
_ product (1) - hash (2)
- headers (2)
- home (1)
- hour (1)
-
html
_ escape (1) - i (1)
- id2ref (1)
- identical? (1)
- imag (2)
- imaginary (2)
- include (2)
- include? (8)
- included (1)
-
included
_ modules (1) -
incomplete
_ input? (1) - index (4)
- infinite? (1)
- info (2)
- inherited (1)
- inject (3)
-
insert
_ output (1) - inspect (5)
- install (1)
- instance (2)
-
instance
_ method (1) -
instance
_ methods (1) -
instance
_ variable _ set (1) - integer? (2)
- intersection (1)
- irb (1)
-
irb
/ ruby-lex (1) -
irb
/ ruby-token (1) - iseuc (1)
- join (1)
-
keep
_ if (3) - label (1)
-
laplace
_ expansion (1) -
last
_ modified (1) -
last
_ status (1) -
latest
_ gc _ info (1) - lchown (1)
- length (4)
-
lex
_ getline (1) - lines (1)
- link (1)
- list (1)
- ljust (1)
- ln (1)
-
ln
_ s (1) - load (3)
-
load
_ from _ binary (1) -
load
_ from _ binary _ extra _ data (1) -
load
_ full _ rubygems _ library (1) -
load
_ specification (1) - local (2)
- localtime (1)
- log (2)
- lookup (1)
- lup (1)
-
lup
_ decomposition (1) - lusolve (1)
- magnitude (6)
- makedirs (1)
- map (3)
- map! (1)
-
marshal
_ dump (1) - match? (1)
-
matched
_ size (1) - max (3)
- max= (1)
-
max
_ by (4) - member? (1)
- merge (1)
- method (1)
-
method
_ defined? (1) -
method
_ undefined (1) - methods (1)
- min (4)
-
min
_ by (4) - minmax (2)
-
minmax
_ by (2) - mkdir (1)
-
mkdir
_ p (1) - mkpath (1)
- mktime (2)
-
module
_ eval (1) -
module
_ function (1) - modulo (3)
- mountpoint? (1)
- move (1)
- mv (1)
- name (1)
-
named
_ captures (1) - namespace (1)
- namespaces (1)
- negative? (1)
- nesting (1)
- new (64)
- none? (1)
- nonzero? (1)
- norm (1)
-
nowrite
_ flag (1) -
nowrite
_ flag= (1) -
num
_ bits (1) -
num
_ bytes (1) -
num
_ waiting (1) - numerator (4)
- of (1)
-
ole
_ query _ interface (1) -
on
_ head (1) -
on
_ tail (1) - open-uri (1)
-
optparse
/ uri (1) - order! (4)
-
original
_ name (1) - pack (2)
- pack テンプレート文字列 (1)
- parse (6)
- parse! (3)
- partition (2)
- path (2)
- permutation (2)
- permute (2)
- permute! (2)
- phase (1)
- pipeline (1)
- polar (2)
- pop (1)
- positive? (1)
- pow (2)
- pp (1)
- pread (1)
- prefix (1)
- prefixes (1)
- prepend (1)
- prerelease? (1)
-
pretty
_ print (1) -
pretty
_ unparse (1) -
previous
_ sibling= (1) -
prime
_ division (1) -
prime
_ fasttest? (1) -
primitive
_ convert (4) - printf (2)
- private (1)
-
private
_ class _ method (1) -
private
_ constant (1) -
private
_ instance _ methods (1) -
private
_ method _ defined? (1) - product (2)
-
protected
_ method _ defined? (1) -
proxy
_ basic _ auth (1) - public (2)
-
public
_ class _ method (1) -
public
_ constant (1) -
public
_ instance _ method (1) -
public
_ method (1) -
public
_ method _ defined? (1) -
public
_ send (2) - push (1)
- putback (2)
- putc (1)
- puts (3)
- pwrite (1)
- query (1)
- quo (3)
- quote (1)
-
quote
_ char (1) - r (1)
- raise (2)
- rassoc (1)
-
rb
_ Integer (1) -
rb
_ ary _ new3 (1) -
rb
_ ary _ push (1) -
rb
_ ary _ shift (1) -
rb
_ ary _ store (1) -
rb
_ call _ super (1) -
rb
_ compile _ file (1) -
rb
_ compile _ string (1) -
rb
_ data _ object _ alloc (1) -
rb
_ define _ class _ under (1) -
rb
_ define _ method (1) -
rb
_ eval _ string (1) -
rb
_ eval _ string _ protect (1) -
rb
_ f _ block _ given _ p (1) -
rb
_ f _ lambda (1) -
rb
_ frame _ last _ func (1) -
rb
_ gc _ mark _ maybe (1) -
rb
_ jump _ tag (1) -
rb
_ load (1) -
rb
_ protect (1) -
rb
_ scan _ args (1) -
rb
_ to _ int (1) - real (2)
- real? (1)
- rect (2)
- rectangular (4)
- reduce (3)
- refine (1)
- regexp (2)
- regular? (1)
- reject (6)
- reject! (5)
- remainder (2)
- remove (1)
-
remove
_ class _ variable (1) -
remove
_ entry (1) -
repeated
_ combination (1) -
repeated
_ permutation (2) - replacement= (1)
- replicate (1)
- report (1)
-
request
_ body _ permitted? (1) -
request
_ get (2) -
request
_ head (2) -
request
_ post (2) - require (2)
-
require
_ relative (1) -
required
_ ruby _ version (1) -
required
_ ruby _ version= (1) -
required
_ rubygems _ version (1) -
required
_ rubygems _ version= (1) -
respond
_ to? (1) -
respond
_ to _ missing? (1) -
response
_ body _ permitted? (1) - restore (1)
- result (2)
- resume (1)
-
return
_ value (1) - rewind (1)
-
rexml
/ parsers / ultralightparser (1) -
rinda
/ tuplespace (1) - rindex (1)
- rjust (1)
- rm (1)
-
rm
_ r (1) - rmdir (1)
- round (9)
- rows (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 2 feature (1) -
ruby 1
. 8 . 3 feature (1) -
ruby 1
. 8 . 4 feature (1) -
ruby 1
. 9 feature (1) -
ruby
_ engine (1) -
ruby
_ finalize (1) -
ruby
_ init (1) -
ruby
_ opts= (1) -
ruby
_ run (1) -
ruby
_ stack _ check (1) -
ruby
_ stack _ length (1) -
ruby
_ stop (1) -
ruby
_ xcalloc (1) -
ruby
_ xfree (1) -
ruby
_ xmalloc (1) -
ruby
_ xrealloc (1) -
rubygems
/ builder (1) -
rubygems
/ commands / build _ command (1) -
rubygems
/ commands / environment _ command (1) -
rubygems
/ commands / generate _ index _ command (1) -
rubygems
/ commands / install _ command (1) -
rubygems
/ commands / list _ command (1) -
rubygems
/ commands / mirror _ command (1) -
rubygems
/ commands / pristine _ command (1) -
rubygems
/ commands / query _ command (1) -
rubygems
/ commands / search _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / uninstall _ command (1) -
rubygems
/ commands / which _ command (1) -
rubygems
/ config _ file (1) -
rubygems
/ custom _ require (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (1) -
rubygems
/ digest / digest _ adapter (1) -
rubygems
/ digest / md5 (1) -
rubygems
/ digest / sha1 (1) -
rubygems
/ digest / sha2 (1) -
rubygems
/ exceptions (1) -
rubygems
/ ext / builder (1) -
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
rubygems
/ indexer (1) -
rubygems
/ installer (1) -
rubygems
/ package / f _ sync _ dir (1) -
rubygems
/ package / tar _ input (1) -
rubygems
/ package / tar _ writer (1) -
rubygems
/ require _ paths _ builder (1) -
rubygems
/ requirement (1) -
rubygems
/ security (1) -
rubygems
/ source _ index (1) -
rubygems
/ source _ info _ cache (1) -
rubygems
/ source _ info _ cache _ entry (1) -
rubygems
/ specification (1) -
rubygems
/ test _ utilities (1) -
rubygems
/ timer (1) -
rubygems
/ uninstaller (1) -
rubygems
/ user _ interaction (1) -
rubygems
/ validator (1) -
rubygems
/ version (1) -
rubygems
/ version _ option (1) -
rubygems
_ version (1) -
rubygems
_ version= (1) - run (1)
- running? (1)
-
satisfied
_ by? (1) - saturday? (1)
- scalar (1)
-
scan
_ full (1) -
scan
_ until (1) - scrub (3)
- scrub! (3)
-
search
_ convpath (1) -
search
_ full (1) - select (5)
- select! (2)
-
send
_ request (1) -
set
_ debug _ output (1) -
set
_ trace _ func (1) - setuid? (2)
- shift (2)
-
singleton
_ class? (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - size (6)
-
skip
_ until (1) - sleep (1)
- slice (1)
- slice! (1)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - solve (1)
-
sort
_ by (2) - source (2)
-
source
_ encoding (1) -
source
_ location (3) - specific? (1)
- split (1)
- sprintf (1)
- sprintf フォーマット (1)
- squeeze (1)
- squeeze! (1)
-
st
_ delete _ safe (1) -
stand
_ alone? (1) - start (6)
- stat (2)
- status (1)
- step (6)
- store (1)
- strftime (1)
- struct (1)
- sub (5)
- sub! (4)
-
sub
_ type (1) -
subdomain
_ of? (1) - subsec (1)
- succ (4)
- 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)
- symlink (1)
- synchronize (1)
- syscall (1)
-
take
_ while (5) - target (1)
- tcp (2)
- test (2)
-
test
/ unit (1) -
thread
_ variable _ set (1) - throw (1)
- thursday? (1)
- timeout (4)
- timeouts= (1)
- times (1)
-
to
_ a (4) -
to
_ binary (1) -
to
_ c (1) -
to
_ enum (2) -
to
_ h (1) -
to
_ int (1) -
to
_ json (3) -
to
_ mailtext (1) -
to
_ rfc822text (1) -
to
_ ruby (1) -
to
_ s (6) -
to
_ string (1) -
to
_ value (1) - touch (1)
-
transform
_ keys (1) -
transform
_ keys! (1) -
transform
_ values (2) -
transform
_ values! (2) - truncate (9)
-
tsort
_ each (1) -
tty
_ output= (1) - tuesday? (1)
-
tv
_ usec (1) - uid (1)
- umask (2)
- uname (1)
- unbind (1)
-
unconverted
_ fields? (1) -
undefine
_ finalizer (1) - undump (1)
- ungetc (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - union (3)
- uniq (4)
- uniq! (2)
- unknown (2)
- unlink (3)
- unnormalize (1)
- unpack (1)
- unpack1 (1)
- unparse (1)
- unscan (1)
- unshift (1)
- untaint (1)
-
untrace
_ var (1) - upcase (1)
- upcase! (1)
- upto (3)
- uptodate? (1)
- urandom (1)
-
url
_ encode (1) -
urlsafe
_ encode64 (1) -
use
_ readline (1) -
use
_ readline? (1) - usec (1)
- using (2)
- utc (3)
- utc? (1)
-
utc
_ offset (1) - utime (1)
- value (4)
-
values
_ at (2) -
verbose
_ flag (1) -
verbose
_ flag= (1) - version (1)
- wait (1)
- wait2 (1)
-
wait
_ readable (1) - waitpid2 (1)
- warn (3)
-
warn
_ unless _ e _ option (1) -
warning
_ unless _ e _ option (1) -
with
_ defaults (1) -
with
_ index (4) -
with
_ object (2) - write (1)
- yield (1)
-
yield
_ self (1) -
yield
_ under (1) - zero (1)
- zero? (1)
- zip (4)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (1)
- メソッド呼び出し(super・ブロック付き・yield) (1)
- リテラル (1)
- 正規表現 (1)
検索結果
先頭5件
-
VALUE INT2NUM(int i) (96919.0)
-
任意の整数を Fixnum か Bignum に変換します。
任意の整数を Fixnum か Bignum に変換します。
例:
VALUE num = INT2NUM(42); //(Cの整数値42をRubyのオブジェクトに変換) -
IRB
:: Context # use _ readline -> bool | nil (96619.0) -
readline を使うかどうかを返します。
readline を使うかどうかを返します。
@return 戻り値よって以下のように動作します。
: true
readline ライブラリを使う
: false
readline ライブラリを使わない
: nil
inf-ruby-mode 以外で readline ライブラリを利用しようとする (デフォルト)
動作を変更するためには .irbrc ファイル中で IRB.conf[:USE_READLINE] の設
定や irb 起動時に --readline オプション、--noreadline オプションの指定
を行います。 -
IRB
:: Context # use _ readline? -> bool | nil (96619.0) -
readline を使うかどうかを返します。
readline を使うかどうかを返します。
@return 戻り値よって以下のように動作します。
: true
readline ライブラリを使う
: false
readline ライブラリを使わない
: nil
inf-ruby-mode 以外で readline ライブラリを利用しようとする (デフォルト)
動作を変更するためには .irbrc ファイル中で IRB.conf[:USE_READLINE] の設
定や irb 起動時に --readline オプション、--noreadline オプションの指定
を行います。 -
IRB
:: ExtendCommand :: Require # execute(file _ name) -> bool (96619.0) -
ファイル file_name を現在の irb インタプリタ上で実行します。
ファイル file_name を現在の irb インタプリタ上で実行します。
file_name に Ruby スクリプトを指定した場合は、Kernel.#require と異
なり、file_name の内容を irb で一行ずつタイプしたかのように、irb 上で一
行ずつ評価されます。require に成功した場合は true を、そうでない場合は
false を返します。
拡張ライブラリ(*.so,*.o,*.dll など)を指定した場合は単純に require され
ます。
@param file_name ファイル名を文字列で指定します。 -
FileUtils
# ruby(*args) {|result , status| . . . } (90688.0) -
与えられた引数で Ruby インタプリタを実行します。
与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh -
IRB
:: ExtendCommand :: Load # execute(file _ name , priv = nil) -> nil (88249.0) -
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実 行します。
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実
行します。
Kernel.#load と異なり、path の内容を irb で一行ずつタイプしたかの
ように、irb 上で一行ずつ評価されます。
@param file_name ファイル名を文字列で指定します。
@param priv 真を指定した場合は実行は内部的に生成される無名モジュール上
で行われ、グローバルな名前空間を汚染しません。
@raise LoadError 読み込みに失敗した場合に発生します。 -
IRB
:: ExtendCommand :: Source # execute(file _ name) -> nil (87949.0) -
現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
path の内容を irb で一行ずつタイプしたかのように、irb 上で一行ずつ評価
されます。$" は更新されず、何度でも実行し直す事ができます。
@param file_name ファイル名を文字列で指定します。 -
IRB
:: ExtendCommand :: Help # execute(*names) -> nil (87667.0) -
RI から Ruby のドキュメントを参照します。
RI から Ruby のドキュメントを参照します。
irb(main):001:0> help String#match
...
@param names 参照したいクラス名やメソッド名などを文字列で指定します。
names を指定しなかった場合は、RI を対話的なモードで起動します。メソッド
名などを入力する事でドキュメントの検索が行えます。入力のタブ補完をする
事ができます。また、空行を入力する事で irb のプロンプトに戻る事ができま
す。
irb(main):001:0> help
Enter the method name you want to look... -
Integer
# upto(max) {|n| . . . } -> Integer (87655.0) -
self から max まで 1 ずつ増やしながら繰り返します。 self > max であれば何もしません。
self から max まで 1 ずつ増やしながら繰り返します。
self > max であれば何もしません。
@param max 数値
@return self を返します。
//emlist[][ruby]{
5.upto(10) {|i| print i, " " } # => 5 6 7 8 9 10
//}
@see Integer#downto, Numeric#step, Integer#times -
Integer
# integer? -> true (87619.0) -
常に真を返します。
常に真を返します。
//emlist[][ruby]{
1.integer? # => true
1.0.integer? # => false
//} -
Integer
# magnitude -> Integer (87619.0) -
self の絶対値を返します。
self の絶対値を返します。
//emlist[][ruby]{
-12345.abs # => 12345
12345.abs # => 12345
-1234567890987654321.abs # => 1234567890987654321
//} -
Integer
# numerator -> Integer (87619.0) -
分子(常に自身)を返します。
分子(常に自身)を返します。
@return 分子を返します。
//emlist[][ruby]{
10.numerator # => 10
-10.numerator # => -10
//}
@see Integer#denominator -
Integer
# remainder(other) -> Numeric (87619.0) -
self を other で割った余り r を返します。
self を other で割った余り r を返します。
r の符号は self と同じになります。
@param other self を割る数。
//emlist[][ruby]{
5.remainder(3) # => 2
-5.remainder(3) # => -2
5.remainder(-3) # => 2
-5.remainder(-3) # => -2
-1234567890987654321.remainder(13731) # => -6966
-1234567890987654321.remainder(13731.24) #... -
Integer
# round(ndigits = 0 , half: :up) -> Integer (87619.0) -
self ともっとも近い整数を返します。
self ともっとも近い整数を返します。
@param ndigits 10進数での小数点以下の有効桁数を整数で指定します。
負の整数を指定した場合、小数点位置から左に少なくとも n 個の 0 が並びます。
@param half ちょうど半分の値の丸め方を指定します。
サポートされている値は以下の通りです。
* :up or nil: 0から遠い方に丸められます。
* :even: もっとも近い偶数に丸められます。
* :down: 0に近い方に丸められます。
//emlist[][ruby]{
1.round # =... -
Integer
# truncate(ndigits = 0) -> Integer (87619.0) -
0 から self までの整数で、自身にもっとも近い整数を返します。
0 から self までの整数で、自身にもっとも近い整数を返します。
@param ndigits 10進数での小数点以下の有効桁数を整数で指定します。
負の整数を指定した場合、小数点位置から左に少なくとも n 個の 0 が並びます。
//emlist[][ruby]{
1.truncate # => 1
1.truncate(2) # => 1
18.truncate(-1) # => 10
(-18).truncate(-1) # => -10
//}
@see Numeric#truncate -
Integer
# upto(max) -> Enumerator (87355.0) -
self から max まで 1 ずつ増やしながら繰り返します。 self > max であれば何もしません。
self から max まで 1 ずつ増やしながら繰り返します。
self > max であれば何もしません。
@param max 数値
@return self を返します。
//emlist[][ruby]{
5.upto(10) {|i| print i, " " } # => 5 6 7 8 9 10
//}
@see Integer#downto, Numeric#step, Integer#times -
IO
# autoclose? -> bool (87319.0) -
auto-close フラグを返します。
auto-close フラグを返します。
//emlist[例][ruby]{
IO.open(IO.sysopen("testfile")) do |io|
io.autoclose? # => true
io.autoclose = false
io.autoclose? # => false
end
//}
@see IO#autoclose= -
IO
# flush -> self (87319.0) -
IO ポートの内部バッファをフラッシュします。
IO ポートの内部バッファをフラッシュします。
このメソッドを使ったとき、即座にメタデータを更新することは保証されません(特にWindowsで)。
即座にメタデータも更新したいときは IO#fsync を使います。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX fflush(3) が失敗した場合に発生します。
//emlist[例][ruby]{
require "tempfile"
Tempfile.open("testtmpfile") do |f|
f.print "test"
File.r... -
IO
# putc(ch) -> object (87319.0) -
文字 ch を self に出力します。 引数の扱いは Kernel.#putc と同じです。詳細はこちらを参照し てください。ch を返します。
文字 ch を self に出力します。
引数の扱いは Kernel.#putc と同じです。詳細はこちらを参照し
てください。ch を返します。
@param ch 出力したい文字を、文字列か文字コード(整数)で与えます。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
//emlist[例][ruby]{
$stdout.putc "A" # => A
$stdout.putc 65 # => A
//}
@see Kernel.#putc -
RbConfig
. ruby -> String (81952.0) -
ruby コマンドのフルパスを返します。
ruby コマンドのフルパスを返します。 -
IO
# each _ codepoint -> Enumerator (78655.0) -
IO の各コードポイントに対して繰り返しブロックを呼びだします。
IO の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポイントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
//emlist[例][ruby]{
IO.write("testfile", "abcdeあ")
File.open("testfile") do |f|
f.each_codepoint { |i| p i }
end
# => 97
# 98
# 99
# 100
# 101
# 12354
//} -
IO
# each _ line(limit , chomp: false) -> Enumerator (78655.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として
与えられたブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
テキスト読み込みメソッドとして動作します。
limit で最大読み込みバイト数を指定します。ただしマルチバイト文字が途中で
切れないように余分に読み込む場合があります。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)... -
IO
# each _ line(rs = $ / , chomp: false) -> Enumerator (78655.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として
与えられたブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
テキスト読み込みメソッドとして動作します。
limit で最大読み込みバイト数を指定します。ただしマルチバイト文字が途中で
切れないように余分に読み込む場合があります。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)... -
IO
# each _ line(rs , limit , chomp: false) -> Enumerator (78655.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として
与えられたブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
テキスト読み込みメソッドとして動作します。
limit で最大読み込みバイト数を指定します。ただしマルチバイト文字が途中で
切れないように余分に読み込む場合があります。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)... -
IO
# dup -> IO (78619.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、
dup は内容の等しいフリーズされていない IO を返します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
clone_io = nil
IO.write("testfile", "test")
File.open("testfile") ... -
IO
# wait(timeout = nil) -> bool | self | nil (78619.0) -
self が読み込み可能になるまでブロックし、読み込み可能になったら 真値を返します。タイムアウト、もしくはEOFで それ以上読みこめない場合は偽の値を返します。
self が読み込み可能になるまでブロックし、読み込み可能になったら
真値を返します。タイムアウト、もしくはEOFで
それ以上読みこめない場合は偽の値を返します。
より詳しくは、一度ブロックしてから読み込み可能になった場合には
selfを返します。
内部のバッファにデータがある場合には
ブロックせずに true を返します。
内部のバッファとはRubyの処理系が保持管理している
バッファのことです。
つまり、読み込み可能である場合にはtrueを返す場合と
selfを返す場合があることに注意してください。
timeout を指定した場合は、指定秒数経過するまでブロックし、タ
イムアウトし... -
IO
# wait _ readable(timeout = nil) -> bool | self | nil (78619.0) -
self が読み込み可能になるまでブロックし、読み込み可能になったら 真値を返します。タイムアウト、もしくはEOFで それ以上読みこめない場合は偽の値を返します。
self が読み込み可能になるまでブロックし、読み込み可能になったら
真値を返します。タイムアウト、もしくはEOFで
それ以上読みこめない場合は偽の値を返します。
より詳しくは、一度ブロックしてから読み込み可能になった場合には
selfを返します。
内部のバッファにデータがある場合には
ブロックせずに true を返します。
内部のバッファとはRubyの処理系が保持管理している
バッファのことです。
つまり、読み込み可能である場合にはtrueを返す場合と
selfを返す場合があることに注意してください。
timeout を指定した場合は、指定秒数経過するまでブロックし、タ
イムアウトし... -
Integer
# modulo(other) -> Numeric (78619.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
//emlist[][ruby]{
13 % 4 # => 1
13 % -4 # => -3
-13 % 4 # => 3
-13 % -4 # => -1
//}
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Integer
# succ -> Integer (78619.0) -
self の次の整数を返します。
self の次の整数を返します。
//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}
@see Integer#pred -
Integer
# times -> Enumerator (78619.0) -
self 回だけ繰り返します。 self が正の整数でない場合は何もしません。
self 回だけ繰り返します。
self が正の整数でない場合は何もしません。
またブロックパラメータには 0 から self - 1 までの数値が渡されます。
//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.times { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}
@see Integer#upto, Integer#downto,... -
IO
# pwrite(string , offset) -> Integer (78373.0) -
stringをoffsetの位置にpwrite()システムコールを使って書き込みます。
stringをoffsetの位置にpwrite()システムコールを使って書き込みます。
IO#seekとIO#writeの組み合わせと比べて、アトミックな操作に
なるという点が優れていて、複数スレッド/プロセスから同じIOオブジェクトを
様々な位置から読み込むことを許します。
どのユーザー空間のIO層のバッファリングもバイパスします。
@param string 書き込む文字列を指定します。
@param offset ファイルポインタを変えずに書き込む位置を指定します。
@return 書き込んだバイト数を返します。
@raise Errno::EXXX シークまたは書き込みが失敗し... -
Gem
. # ruby -> String (72952.0) -
実行中のRubyインタプリタのパスを返します。
実行中のRubyインタプリタのパスを返します。 -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (72919.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
エラー発生時に入力文字列が不足している場合に真を返します。
つまり、マルチバイト文字列の途中で文字列が終わっている場合に
真を返します。これは後続の入力を追加することでエラーが
解消する可能性があることを意味します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenc... -
rubygems
/ digest / digest _ adapter (72067.0) -
Ruby 1.8.5 と 1.8.6 の間に存在する API の差異を吸収するためのライブラリです。
Ruby 1.8.5 と 1.8.6 の間に存在する API の差異を吸収するためのライブラリです。
古いバージョンの API を新しいバージョンのものに合わせます。
RubyGems では digest, hexdigest の二つのメソッドが使用されるのでこの二つのメソッドのみ
API を変換するようにしています。
Ruby 1.8.6 以降ではこのライブラリは使用されません。
@see digest -
rubygems
/ version _ option (72001.0) -
Gem::Command の --version, --platform オプションのためのモジュールを 定義したライブラリです。
Gem::Command の --version, --platform オプションのためのモジュールを
定義したライブラリです。 -
IO
# each(limit , chomp: false) -> Enumerator (69655.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として
与えられたブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
テキスト読み込みメソッドとして動作します。
limit で最大読み込みバイト数を指定します。ただしマルチバイト文字が途中で
切れないように余分に読み込む場合があります。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)... -
IO
# each(rs , limit , chomp: false) -> Enumerator (69655.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として
与えられたブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
テキスト読み込みメソッドとして動作します。
limit で最大読み込みバイト数を指定します。ただしマルチバイト文字が途中で
切れないように余分に読み込む場合があります。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)... -
Integer
# downto(min) -> Enumerator (69655.0) -
self から min まで 1 ずつ減らしながらブロックを繰り返し実行します。 self < min であれば何もしません。
self から min まで 1 ずつ減らしながらブロックを繰り返し実行します。
self < min であれば何もしません。
@param min 数値
@return self を返します。
//emlist[][ruby]{
5.downto(1) {|i| print i, " " } # => 5 4 3 2 1
//}
@see Integer#upto, Numeric#step, Integer#times -
Integer
# **(other) -> Numeric (69637.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1
... -
Integer
# / (other) -> Numeric (69637.0) -
除算の算術演算子。
除算の算術演算子。
other が Integer の場合、整商(整数の商)を Integer で返します。
普通の商(剰余を考えない商)を越えない最大の整数をもって整商とします。
other が Float、Rational、Complex の場合、普通の商を other と
同じクラスのインスタンスで返します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[例][ruby]{
7 / 2 # => 3
7 / -2 # => -4
7 / 2.0 # => 3.5
7 / Rational(2, 1) # => (7/2)
7... -
Integer
# pow(other) -> Numeric (69637.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1
... -
Integer
# pow(other , modulo) -> Integer (69637.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1
... -
IO
# pread(maxlen , offset , outbuf = "") -> string (69619.0) -
preadシステムコールを使ってファイルポインタを変更せずに、また現在のファイルポインタに 依存せずにmaxlenバイト読み込みます。
preadシステムコールを使ってファイルポインタを変更せずに、また現在のファイルポインタに
依存せずにmaxlenバイト読み込みます。
IO#seekとIO#readの組み合わせと比べて、アトミックな操作に
なるという点が優れていて、複数スレッド/プロセスから同じIOオブジェクトを
様々な位置から読み込むことを許します。
どのユーザー空間のIO層のバッファリングもバイパスします。
@param maxlen 読み込むバイト数を指定します。
@param offset 読み込み開始位置のファイルの先頭からのオフセットを指定します。
@param outbuf データを受け取る String... -
Integer
# %(other) -> Numeric (69619.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
//emlist[][ruby]{
13 % 4 # => 1
13 % -4 # => -3
-13 % 4 # => 3
-13 % -4 # => -1
//}
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Integer
# *(other) -> Numeric (69619.0) -
算術演算子。積を計算します。
算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
2 * 3 # => 6
//} -
Integer
# +(other) -> Numeric (69619.0) -
算術演算子。和を計算します。
算術演算子。和を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
3 + 4 # => 7
//} -
Integer
# -(other) -> Numeric (69619.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
4 - 1 #=> 3
//} -
IO
# each(rs = $ / , chomp: false) -> Enumerator (69355.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として
与えられたブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
テキスト読み込みメソッドとして動作します。
limit で最大読み込みバイト数を指定します。ただしマルチバイト文字が途中で
切れないように余分に読み込む場合があります。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)... -
IO
. foreach(path , rs = $ / , chomp: false) -> Enumerator (69355.0) -
path で指定されたファイルの各行を引数としてブロックを繰り返し実行します。 path のオープンに成功すれば nil を返します。
path で指定されたファイルの各行を引数としてブロックを繰り返し実行します。
path のオープンに成功すれば nil を返します。
ブロックが与えられなかった場合は、path で指定されたファイルの各行を繰り返す
Enumerator オブジェクトを生成して返します。
テキスト読み込みメソッドとして動作します。
path が空ファイルの場合、何もせずに nil を返します。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。
@param path ファイル名を表す文字列か "|コマンド名" を指定します。
@pa... -
IO
# each _ byte -> Enumerator (69319.0) -
IO の現在位置から 1 バイトずつ読み込み、それを整数として与え、ブロックを実行します。
IO の現在位置から 1 バイトずつ読み込み、それを整数として与え、ブロックを実行します。
ブロックが与えられなかった場合は、自身から生成した
Enumerator オブジェクトを返します。
バイナリ読み込みメソッドとして動作します。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
IO.write("testfile", "aあ")
File.open("testfile") do |io|
io.each_byte { |x| p x }
# => 97
# 227
# 129
# 1... -
Encoding
:: Converter # insert _ output(string) -> nil (64273.0) -
変換器内のバッファに文字列を挿入します。 バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
変換器内のバッファに文字列を挿入します。
バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
変換先がステートフルなエンコーディングであった場合、
挿入された文字列は状態に基づいて変換され、状態を更新します。
このメソッドは変換に際してエラーが発生した際にのみ利用されるべきです。
@param string 挿入する文字列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
src = "HIRAGANA LETTER A is \u{3042}."
dst = ""
p ec.... -
ERB
:: Util . # u(s) -> String (63658.0) -
文字列 s を URLエンコードした文字列を返します。
文字列 s を URLエンコードした文字列を返します。
文字列 s 中に含まれる 2バイト文字や半角スペースについて URL エンコードを行った文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20P... -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (55552.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。 -
Gem
:: Specification # required _ ruby _ version=(requirement) (55552.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (55501.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。 -
Gem
:: Specification # required _ rubygems _ version=(requirement) (55501.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement -
Object
:: RUBY _ ENGINE -> String (55378.0) -
Ruby処理系実装の種類を表す文字列。
Ruby処理系実装の種類を表す文字列。
例:
$ ruby-1.9.1 -ve 'p RUBY_ENGINE'
ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux]
"ruby"
$ jruby -ve 'p RUBY_ENGINE'
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
"jruby" -
Gem
. ruby _ engine -> String (55252.0) -
Ruby処理系実装の種類を表す文字列を返します。
Ruby処理系実装の種類を表す文字列を返します。 -
Object
:: RUBY _ ENGINE _ VERSION -> String (55252.0) -
Ruby処理系実装のバージョンを表す文字列。
Ruby処理系実装のバージョンを表す文字列。 -
void ruby
_ init(void) (55249.0) -
評価器を初期化します。Ruby C API を呼ぶプロセスでは 前もって必ずこの関数を呼ばなければなりません。
評価器を初期化します。Ruby C API を呼ぶプロセスでは
前もって必ずこの関数を呼ばなければなりません。 -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (55237.0) -
$. の別名
$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5 -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (55219.0) -
各属性に対しブロックを呼び出します。
各属性に対しブロックを呼び出します。
個々の属性は REXML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (55219.0) -
name という名前の属性を取得します。
name という名前の属性を取得します。
name という名前を持つ属性がない場合は nil を返します。
@param name 属性名(文字列)
@see REXML::Attributes#[]
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (55219.0) -
namespace と name で特定される属性を返します。
namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.ne... -
Gem
:: Specification # rubygems _ version=(version) (55201.0) -
この Gem パッケージを作成した RubyGems のバージョンをセットします。 この属性は Gem パッケージが作成された時に自動的にセットされます。
この Gem パッケージを作成した RubyGems のバージョンをセットします。
この属性は Gem パッケージが作成された時に自動的にセットされます。
@param version RubyGems のバージョンを指定します。 -
void ruby
_ finalize(void) (55201.0) -
評価器プロセスの終了処理を行います。
評価器プロセスの終了処理を行います。 -
Fiddle
:: BUILD _ RUBY _ PLATFORM -> String (54970.0) -
ビルドに用いた ruby のプラットフォームを表す文字列。
ビルドに用いた ruby のプラットフォームを表す文字列。
通常、Object::RUBY_PLATFORM と同じ。 -
Object
:: RUBY _ DESCRIPTION -> String (54970.0) -
Ruby の詳細を表す文字列。
Ruby の詳細を表す文字列。
ruby -v で表示される内容が格納されています。 -
Object
:: RUBY _ VERSION -> String (54970.0) -
Ruby のバージョンを表す文字列。
Ruby のバージョンを表す文字列。
Ruby のバージョンは、major.minor.teeny という形式です。 -
Object
:: RUBY _ COPYRIGHT -> String (54952.0) -
Ruby のコピーライトを表す文字列。
Ruby のコピーライトを表す文字列。 -
Object
:: RUBY _ REVISION -> Integer (54952.0) -
Ruby の Subversion でのリビジョン番号を表す Integer オブジェクトです。
Ruby の Subversion でのリビジョン番号を表す Integer オブジェクトです。 -
void ruby
_ options(int argc , char **argv) (54949.0) -
argc と argv を ruby への コマンドラインオプションとして処理します。
argc と argv を ruby への
コマンドラインオプションとして処理します。 -
ObjectSpace
. # undefine _ finalizer(obj) -> object (54919.0) -
obj に対するファイナライザをすべて解除します。 obj を返します。
obj に対するファイナライザをすべて解除します。
obj を返します。
@param obj ファイナライザを解除したいオブジェクトを指定します。
//emlist[例][ruby]{
class Sample
def Sample.callback
proc {
puts "finalize"
}
end
def initialize
ObjectSpace.define_finalizer(self, Sample.callback)
end
def undef
ObjectSpace.undefine_final... -
Gem
:: QuickLoader . load _ full _ rubygems _ library (54901.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: RubyGemsPackageVersion -> String (54901.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Gem
:: RubyGemsVersion -> String (54901.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Gem
:: Specification # rubygems _ version -> String (54901.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
この Gem パッケージを作成した RubyGems のバージョンを返します。 -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (54751.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
ブロックを sec 秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいります。
また sec が 0 もしくは nil のときは制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
@param message エラー... -
Timeout
. # timeout(sec , exception _ class , message) {|i| . . . } -> object (54751.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
ブロックを sec 秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいります。
また sec が 0 もしくは nil のときは制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
@param message エラー... -
REXML
:: Security . entity _ expansion _ text _ limit -> Integer (54619.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
実体参照の展開による文字列の増分(テキストのバイト数)の
最大値を指定します。
展開によって増分値がこの値を越えると
例外を発生させ、処理を中断します。
実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10240 (byte) です。
@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/ -
REXML
:: Security . entity _ expansion _ text _ limit=(val) (54619.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
実体参照の展開による文字列の増分(テキストのバイト数)の
最大値を指定します。
展開によって増分値がこの値を越えると
例外を発生させ、処理を中断します。
実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10240 (byte) です。
@see REXML::Document.entity_expansion_text_limit
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/ -
rubygems
/ security (54163.0) -
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
=== 署名付きの Gem パッケージ
==== 目次
* 概要
* 解説
* コマンドラインオプション
* OpenSSL リファレンス
* Bugs / TODO
* 作者について
==== 概要
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
以下のセクションでは、署名付きの Gem パッケージを作成する方法を
ステップバイステップで解説しています。
==== 解説
@todo メソッドではない
あなたが自分の Gem に署名するためには、... -
rubygems
/ commands / install _ command (54127.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
Options:
--platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストールします
-v, --version VERSION 指定されたバージョンの Gem パッケージをインストールします
Install/Update Op... -
rubygems
/ commands / uninstall _ command (54073.0) -
Gem パッケージをアンインストールするためのライブラリです。
Gem パッケージをアンインストールするためのライブラリです。
Usage: gem uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --... -
rubygems
/ commands / list _ command (54055.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
Gem パッケージの名前を前方一致で検索するためのライブラリです。
Usage: gem list [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力します
-d, --[no-]details Gem パッケージの詳細も表示します
--[no-]versions ... -
irb
/ ruby-lex (54049.0) -
Ruby のソースコードを字句解析するためのサブライブラリです。
Ruby のソースコードを字句解析するためのサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
irb
/ ruby-token (54049.0) -
Ruby のソースコード中の各種トークンを定義したサブライブラリです。
Ruby のソースコード中の各種トークンを定義したサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
rubygems
/ commands / generate _ index _ command (54037.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
ある Gem サーバに対するインデックスを作成するためのライブラリです。
Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
... -
rubygems
/ commands / specification _ command (54037.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
Usage: gem specification [GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify the platform of gem to specification
--all ... -
Thread
:: SizedQueue (54019.0) -
サイズの最大値を指定できる Thread::Queue です。
サイズの最大値を指定できる Thread::Queue です。
=== 例
283 より。q をサイズ 1 の SizedQueue オブジェクトに
することによって、入力される行と出力される行が同じ順序になります。
q = [] にすると入力と違った順序で行が出力されます。
require 'thread'
q = SizedQueue.new(1)
th = Thread.start {
while line = q.pop
print line
end
}
while l = gets
q.push(l)
end
... -
rubygems
/ commands / build _ command (54019.0) -
Gem パッケージをビルドするためのライブラリです。
Gem パッケージをビルドするためのライブラリです。
Usage: gem build GEMSPEC_FILE [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します... -
rubygems
/ commands / environment _ command (54019.0) -
RubyGems の環境に関する情報を表示するためのライブラリです。
RubyGems の環境に関する情報を表示するためのライブラリです。
Usage: gem environment [arg] [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイル... -
rubygems
/ commands / mirror _ command (54019.0) -
リモートリポジトリをローカルリポジトリにミラーするためのライブラリです。
リモートリポジトリをローカルリポジトリにミラーするためのライブラリです。
Usage: gem mirror [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
... -
rubygems
/ commands / pristine _ command (54019.0) -
インストールされている Gem パッケージを初期状態にするためのライブラリです。
インストールされている Gem パッケージを初期状態にするためのライブラリです。
Usage: gem pristine [args] [options]
Options:
--all インストールされている全ての Gem パッケージを
初期状態に戻します
-v, --version VERSION 指定したバージョンの Gem パッケージを
... -
rubygems
/ custom _ require (54019.0) -
Kernel#require を再定義するためのライブラリです。
Kernel#require を再定義するためのライブラリです。
Ruby1.9 以前で使用しています。 -
rubygems
/ builder (54001.0) -
Gem::Specification のインスタンスから Gem パッケージを作成するためのライブラリです。
Gem::Specification のインスタンスから Gem パッケージを作成するためのライブラリです。 -
rubygems
/ commands / which _ command (54001.0) -
指定された Gem パッケージに含まれるライブラリのパスを見つけるためのライブラリです。
指定された Gem パッケージに含まれるライブラリのパスを見つけるためのライブラリです。 -
rubygems
/ config _ file (54001.0) -
設定ファイルに書かれている gem コマンドのオプションを オブジェクトに保存するためのライブラリです。
設定ファイルに書かれている gem コマンドのオプションを
オブジェクトに保存するためのライブラリです。 -
rubygems
/ dependency _ installer (54001.0) -
ある Gem が依存している Gem を同時にインストールするためのライブラリです。
ある Gem が依存している Gem を同時にインストールするためのライブラリです。 -
rubygems
/ dependency _ list (54001.0) -
Gem の依存関係を扱うためのライブラリです。
Gem の依存関係を扱うためのライブラリです。