種類
ライブラリ
- English (4)
- ビルトイン (356)
- base64 (1)
- bigdecimal (99)
-
bigdecimal
/ ludcmp (2) -
bigdecimal
/ math (6) -
bigdecimal
/ util (7) -
cgi
/ html (5) - continuation (1)
- csv (5)
- date (7)
- dbm (3)
- debug (1)
- delegate (10)
- digest (2)
- drb (7)
- e2mmap (1)
- erb (1)
- etc (5)
- expect (2)
- fcntl (1)
- fiddle (3)
- fileutils (2)
- gdbm (7)
-
io
/ console (3) -
io
/ nonblock (1) - ipaddr (1)
-
irb
/ cmd / help (1) -
irb
/ cmd / load (3) -
irb
/ cmd / subirb (1) -
irb
/ context (8) -
irb
/ ext / save-history (1) -
irb
/ extend-command (6) -
irb
/ inspector (3) -
irb
/ magic-file (2) - json (20)
-
json
/ add / bigdecimal (2) - matrix (72)
- mkmf (9)
-
mutex
_ m (1) -
net
/ ftp (3) -
net
/ http (7) -
net
/ imap (8) -
net
/ pop (4) -
net
/ smtp (5) - objspace (10)
- observer (1)
- open-uri (1)
- openssl (151)
- optparse (3)
- ostruct (3)
- pathname (8)
- pp (6)
- prettyprint (2)
- prime (2)
- profiler (1)
- pstore (4)
- psych (15)
- pty (2)
- rake (13)
-
rdoc
/ code _ object (9) -
rdoc
/ context (13) -
rdoc
/ markup (1) -
rdoc
/ single _ class (1) -
rdoc
/ top _ level (4) - resolv (9)
-
rexml
/ document (67) -
rexml
/ parsers / pullparser (7) -
rexml
/ sax2listener (5) -
rexml
/ streamlistener (5) -
rinda
/ rinda (8) -
rinda
/ tuplespace (6) -
ripper
/ filter (3) -
ripper
/ sexp (2) - rss (3)
-
rubygems
/ builder (1) -
rubygems
/ commands / build _ command (2) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ commands / stale _ command (1) -
rubygems
/ commands / update _ command (1) -
rubygems
/ config _ file (2) -
rubygems
/ defaults (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (5) -
rubygems
/ exceptions (1) -
rubygems
/ ext / builder (1) -
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
rubygems
/ format (2) -
rubygems
/ gem _ path _ searcher (5) -
rubygems
/ indexer (1) -
rubygems
/ installer (7) -
rubygems
/ old _ format (2) -
rubygems
/ package / tar _ input (4) -
rubygems
/ package / tar _ reader / entry (1) -
rubygems
/ package / tar _ writer (1) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ require _ paths _ builder (1) -
rubygems
/ requirement (1) -
rubygems
/ security (27) -
rubygems
/ server (1) -
rubygems
/ source _ index (9) -
rubygems
/ source _ info _ cache (1) -
rubygems
/ spec _ fetcher (7) -
rubygems
/ specification (62) -
rubygems
/ timer (1) -
rubygems
/ uninstaller (7) -
rubygems
/ validator (1) -
rubygems
/ version (1) - scanf (3)
- sdbm (4)
- securerandom (6)
- set (5)
- shell (14)
-
shell
/ builtin-command (3) -
shell
/ command-processor (8) -
shell
/ filter (9) -
shell
/ process-controller (2) - singleton (1)
- socket (28)
- strscan (4)
- syslog (1)
- tempfile (2)
- time (2)
- timeout (3)
- tmpdir (1)
- tracer (1)
- tsort (10)
- uri (9)
-
webrick
/ httpauth / authenticator (1) -
webrick
/ httpauth / basicauth (1) -
webrick
/ httpresponse (1) -
webrick
/ httpstatus (6) -
webrick
/ httputils (1) -
webrick
/ utils (1) -
win32
/ registry (3) - win32ole (14)
-
yaml
/ dbm (13) - zlib (6)
クラス
-
ARGF
. class (3) - Addrinfo (3)
- Array (31)
- BasicObject (9)
- BasicSocket (4)
- BigDecimal (98)
- Binding (2)
-
CGI
:: Cookie (2) -
CSV
:: Row (3) -
CSV
:: Table (2) - Class (4)
- Complex (6)
- DBM (3)
-
DRb
:: DRbObject (4) -
DRb
:: DRbServer (1) -
DRb
:: DRbUnknown (1) - DateTime (7)
- Delegator (6)
-
Digest
:: Base (1) - Dir (2)
- ERB (1)
-
Encoding
:: Converter (8) -
Encoding
:: InvalidByteSequenceError (2) -
Enumerator
:: Lazy (7) -
Enumerator
:: Yielder (2) - FalseClass (5)
- Fiber (2)
-
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Pointer (1) - File (4)
-
File
:: Stat (3) - Float (4)
- GDBM (7)
-
Gem
:: Builder (1) -
Gem
:: Commands :: BuildCommand (2) -
Gem
:: Commands :: DependencyCommand (1) -
Gem
:: Commands :: LockCommand (1) -
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: ConfigFile (2) -
Gem
:: DependencyInstaller (1) -
Gem
:: DependencyList (5) -
Gem
:: Ext :: Builder (1) -
Gem
:: Ext :: ConfigureBuilder (1) -
Gem
:: Ext :: ExtConfBuilder (1) -
Gem
:: Ext :: RakeBuilder (1) -
Gem
:: Format (2) -
Gem
:: GemPathSearcher (5) -
Gem
:: Indexer (1) -
Gem
:: Installer (7) -
Gem
:: OldFormat (2) -
Gem
:: Package :: TarInput (4) -
Gem
:: Package :: TarReader :: Entry (1) -
Gem
:: Package :: TarWriter (1) -
Gem
:: RemoteFetcher (1) -
Gem
:: Requirement (1) -
Gem
:: Security :: Policy (15) -
Gem
:: Security :: Signer (1) -
Gem
:: Server (1) -
Gem
:: SourceIndex (9) -
Gem
:: SourceInfoCache (1) -
Gem
:: SpecFetcher (7) -
Gem
:: Specification (62) -
Gem
:: Uninstaller (7) -
Gem
:: Validator (1) -
Gem
:: Version (1) - Hash (22)
- IO (10)
- IPAddr (1)
- IPSocket (1)
-
IRB
:: Context (8) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) -
IRB
:: Inspector (2) - Integer (1)
-
JSON
:: State (3) - LocalJumpError (1)
- Matrix (21)
-
Matrix
:: EigenvalueDecomposition (10) -
Matrix
:: LUPDecomposition (10) - Method (2)
- Module (20)
-
Net
:: FTP (1) -
Net
:: FTP :: MLSxEntry (2) -
Net
:: HTTP (3) -
Net
:: IMAP (5) -
Net
:: IMAP :: Envelope (1) -
Net
:: IMAP :: ResponseCode (1) -
Net
:: IMAP :: ResponseText (1) -
Net
:: POP3 (1) -
Net
:: POPMail (3) -
Net
:: SMTP (5) - Numeric (1)
- Object (64)
-
ObjectSpace
:: WeakMap (2) -
OpenSSL
:: ASN1 :: ASN1Data (1) -
OpenSSL
:: ASN1 :: ObjectId (8) -
OpenSSL
:: BN (2) -
OpenSSL
:: Cipher (2) -
OpenSSL
:: Config (8) -
OpenSSL
:: HMAC (1) -
OpenSSL
:: OCSP :: CertificateId (1) -
OpenSSL
:: OCSP :: Request (1) -
OpenSSL
:: PKCS7 (4) -
OpenSSL
:: PKCS7 :: RecipientInfo (4) -
OpenSSL
:: PKey :: EC (20) -
OpenSSL
:: PKey :: EC :: Group (19) -
OpenSSL
:: PKey :: EC :: Point (12) -
OpenSSL
:: PKey :: RSA (2) -
OpenSSL
:: SSL :: SSLContext (3) -
OpenSSL
:: SSL :: SSLSocket (3) -
OpenSSL
:: X509 :: Certificate (4) -
OpenSSL
:: X509 :: ExtensionFactory (5) -
OpenSSL
:: X509 :: Name (6) -
OpenSSL
:: X509 :: Request (2) -
OpenSSL
:: X509 :: StoreContext (14) - OpenStruct (3)
- OptionParser (2)
- PP (3)
- PStore (4)
- Pathname (8)
- PrettyPrint (2)
- Prime (2)
-
Psych
:: Handler (1) -
Psych
:: Nodes :: Document (1) -
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (2) -
RDoc
:: CodeObject (9) -
RDoc
:: Context (9) -
RDoc
:: Context :: Section (4) -
RDoc
:: Markup (1) -
RDoc
:: Options (2) -
RDoc
:: TopLevel (4) -
REXML
:: AttlistDecl (7) -
REXML
:: Attribute (1) -
REXML
:: CData (1) -
REXML
:: Declaration (2) -
REXML
:: DocType (3) -
REXML
:: Document (2) -
REXML
:: Element (1) -
REXML
:: ElementDecl (1) -
REXML
:: Elements (2) -
REXML
:: NotationDecl (8) -
REXML
:: Parent (8) -
REXML
:: Parsers :: PullEvent (7) -
REXML
:: Text (1) -
REXML
:: XMLDecl (18) -
Rake
:: FileCreationTask (2) -
Rake
:: FileList (2) -
Rake
:: Task (1) -
Rake
:: TaskArguments (1) - Range (7)
- Rational (6)
- Regexp (1)
-
Resolv
:: DNS (4) -
Resolv
:: IPv6 (4) -
Rinda
:: DRbObjectTemplate (2) -
Rinda
:: SimpleRenewer (1) -
Rinda
:: TupleEntry (2) -
Rinda
:: TupleSpace (4) -
Rinda
:: TupleSpaceProxy (4) - Ripper (2)
-
Ripper
:: Filter (3) -
RubyVM
:: InstructionSequence (1) - SDBM (4)
-
Scanf
:: FormatSpecifier (1) -
Scanf
:: FormatString (2) - Set (5)
- Shell (14)
-
Shell
:: CommandProcessor (8) -
Shell
:: Echo (2) -
Shell
:: Filter (9) -
Shell
:: ProcessController (2) - SimpleDelegator (3)
- Socket (10)
-
Socket
:: AncillaryData (1) -
Socket
:: Option (1) - StopIteration (1)
- String (4)
- StringScanner (4)
- Struct (5)
- Symbol (2)
- Tempfile (2)
- Thread (5)
-
Thread
:: Backtrace :: Location (1) -
Thread
:: Queue (3) -
Thread
:: SizedQueue (3) - Time (8)
- TracePoint (4)
- Tracer (2)
- TrueClass (5)
- UDPSocket (1)
- UNIXSocket (2)
-
URI
:: FTP (3) -
URI
:: Generic (2) -
URI
:: HTTP (1) -
URI
:: LDAP (1) -
URI
:: MailTo (1) - UncaughtThrowError (1)
- Vector (29)
-
WEBrick
:: Cookie (2) -
WEBrick
:: HTTPAuth :: BasicAuth (1) -
WEBrick
:: HTTPResponse (1) - WIN32OLE (7)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ PARAM (1) -
WIN32OLE
_ TYPE (1) -
WIN32OLE
_ VARIABLE (1) -
WIN32OLE
_ VARIANT (3) -
Win32
:: Registry (1) -
YAML
:: DBM (13) -
Zlib
:: GzipFile :: Error (1) -
Zlib
:: GzipReader (2) -
Zlib
:: GzipWriter (3)
モジュール
- Base64 (1)
- BigMath (8)
-
CGI
:: HtmlExtension (5) - DRb (1)
- DublinCoreModel (3)
- Enumerable (49)
- Etc (5)
- Exception2MessageMapper (1)
- Fcntl (1)
- Fiddle (1)
-
File
:: Constants (1) - FileTest (3)
- FileUtils (2)
- GC (2)
- Gem (1)
-
Gem
:: RequirePathsBuilder (1) -
Gem
:: Security (10) - IRB (1)
-
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (4) -
IRB
:: HistorySavingAbility (1) - JSON (7)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (50)
- LUSolve (2)
- Marshal (2)
-
Mutex
_ m (1) - ObjectSpace (17)
- Observable (1)
-
OpenSSL
:: ASN1 (6) -
OpenSSL
:: OCSP (2) -
OpenSSL
:: SSL (3) -
OpenSSL
:: X509 (8) -
OptionParser
:: Arguable (1) - PTY (2)
- Process (5)
-
Profiler
_ _ (1) - Psych (5)
-
REXML
:: Node (2) -
REXML
:: SAX2Listener (5) -
REXML
:: Security (4) -
REXML
:: StreamListener (5) -
Rake
:: Cloneable (2) - SecureRandom (5)
- Singleton (1)
-
Socket
:: Constants (5) -
Syslog
:: Facility (1) - TSort (10)
- Timeout (1)
-
WEBrick
:: HTTPAuth :: Authenticator (1) -
WEBrick
:: HTTPStatus (3) -
WEBrick
:: HTTPUtils (1) -
WEBrick
:: Utils (1) -
Win32
:: Registry :: API (1) -
Win32
:: Registry :: Constants (1)
オブジェクト
- ENV (8)
-
IRB
:: MagicFile (2)
キーワード
- ! (1)
- != (1)
- !~ (1)
-
$ > (1) -
$ IGNORECASE (1) -
$ INPUT _ RECORD _ SEPARATOR (1) -
$ OUTPUT _ RECORD _ SEPARATOR (1) -
$ RS (1) -
$ stderr (1) -
$ stdin (1) -
$ stdout (1) - % (1)
- & (2)
- * (1)
- ** (1)
- + (1)
- +@ (2)
- - (1)
- -@ (2)
-
/ (1) - < (1)
- << (4)
- <= (1)
- <=> (2)
- == (9)
- === (3)
- =~ (1)
- > (1)
- >= (1)
- ARGV (1)
- AlmostNoSecurity (1)
- AttlistDecl (1)
- BASE (1)
- BigDecimal (3)
-
CLOCK
_ MONOTONIC _ PRECISE (1) -
CLOCK
_ REALTIME _ PRECISE (1) -
CLOCK
_ SECOND (1) -
CLOCK
_ UPTIME _ PRECISE (1) -
Check
_ Type (1) - DATA (1)
- DECLARATION (1)
-
DEFAULT
_ OBJECT _ TYPE (1) -
DEFAULT
_ PARAMS (1) -
DEFAULT
_ VERSION (1) - DIRECT (1)
- DRbObjectTemplate (1)
- Declaration (1)
- DecodeError (1)
- DelegateClass (1)
- Digest (1)
- E (1)
- ECANCELED (1)
- ECError (1)
- ECHILD (1)
- ELIBEXEC (1)
-
EMPTY
_ MARSHAL _ CHECKSUM (1) -
ENCODING
_ SPEC _ RE (1) - ENOTRECOVERABLE (1)
-
EXCEPTION
_ ALL (1) -
EXCEPTION
_ INFINITY (1) -
EXCEPTION
_ NaN (1) -
EXCEPTION
_ OVERFLOW (1) -
EXCEPTION
_ UNDERFLOW (1) -
EXCEPTION
_ ZERODIVIDE (1) - Echo (1)
- EigenvalueDecomposition (1)
- ElementDecl (1)
- Error (2)
- ExpectationFailed (1)
- FALSE (1)
-
FD
_ CLOEXEC (1) - FalseClass (3)
- FileCreationTask (1)
- Group (1)
- HTTPExpectationFailed (1)
- HTTPMultipleChoice (1)
- HTTPMultipleChoices (1)
- HTTPPreconditionFailed (1)
- HighSecurity (1)
- INFINITY (1)
-
INSECURE
_ METHOD (1) -
IPV6
_ RECVHOPLIMIT (2) -
IPV6
_ RECVTCLASS (2) -
IP
_ IPSEC _ POLICY (2) -
IP
_ RECVSLLA (2) -
IP
_ RECVTTL (2) - Inspector (1)
- InvalidSpecificationException (1)
- JSON (1)
-
KEY
_ EXECUTE (1) -
LOG
_ SECURITY (1) - LUPDecomposition (1)
- LowSecurity (1)
-
MARSHAL
_ FIELDS (1) - MediumSecurity (1)
- MultipleChoices (1)
-
NAMED
_ CURVE (1) - NAN (1)
- NIL (1)
- NOCHECKS (1)
- NOSELECT (1)
- NOSMIMECAP (1)
- NoSecurity (1)
- NotationDecl (1)
- OBJECT (1)
-
OBJECT
_ DESCRIPTOR (1) -
OBJECT
_ TYPE _ TEMPLATE (1) -
OBJ
_ INFECT (1) -
OP
_ PKCS1 _ CHECK _ 1 (1) -
OP
_ PKCS1 _ CHECK _ 2 (1) -
OP
_ SINGLE _ ECDH _ USE (1) - ObjectId (3)
-
PC
_ REC _ INCR _ XFER _ SIZE (1) -
PC
_ REC _ MAX _ XFER _ SIZE (1) -
PC
_ REC _ MIN _ XFER _ SIZE (1) -
PC
_ REC _ XFER _ ALIGN (1) - PI (1)
- PKey (1)
- Point (1)
- Policies (1)
- Policy (1)
- PreconditionFailed (1)
-
RC
_ EXPECTATION _ FAILED (1) -
RC
_ PRECONDITION _ FAILED (1) - RECENT (1)
-
REVOKED
_ STATUS _ UNSPECIFIED (1) - ROBJECT (1)
-
ROUND
_ CEILING (1) -
ROUND
_ DOWN (1) -
ROUND
_ FLOOR (1) -
ROUND
_ HALF _ DOWN (1) -
ROUND
_ HALF _ EVEN (1) -
ROUND
_ HALF _ UP (1) -
ROUND
_ MODE (1) -
ROUND
_ UP (1) -
RUBY
_ PATCHLEVEL (1) -
RUBY
_ PLATFORM (1) -
RUBY
_ RELEASE _ DATE (1) - RecipientInfo (1)
-
Regex
_ 6Hex4Dec (1) -
Regex
_ 8Hex (1) -
Regex
_ CompressedHex (1) -
Regex
_ CompressedHex4Dec (1) - Ruby プログラムの実行 (1)
- Rubyの起動 (1)
- RuleRecursionOverflowError (1)
-
SCRIPT
_ LINES _ _ (1) -
SC
_ CLOCK _ SELECTION (1) -
SIGN
_ NEGATIVE _ FINITE (1) -
SIGN
_ NEGATIVE _ INFINITE (1) -
SIGN
_ NEGATIVE _ ZERO (1) -
SIGN
_ NaN (1) -
SIGN
_ POSITIVE _ FINITE (1) -
SIGN
_ POSITIVE _ INFINITE (1) -
SIGN
_ POSITIVE _ ZERO (1) - SPECIAL (1)
-
SPECIAL
_ CONST _ P (1) -
SPECIAL
_ RETURN (1) - SecureRandom (1)
- Security (1)
- SingleClass (1)
- StaleCommand (1)
- StoreContext (1)
-
TOPLEVEL
_ BINDING (1) - TRUE (1)
-
TRUST
_ OBJECT _ SIGN (1) - TrueClass (3)
- URI (1)
- VISIBILITIES (1)
-
V
_ ERR _ CERT _ REJECTED (1) -
V
_ ERR _ SUBJECT _ ISSUER _ MISMATCH (1) -
V
_ ERR _ UNABLE _ TO _ DECODE _ ISSUER _ PUBLIC _ KEY (1) -
V
_ ERR _ UNABLE _ TO _ DECRYPT _ CERT _ SIGNATURE (1) -
V
_ ERR _ UNABLE _ TO _ DECRYPT _ CRL _ SIGNATURE (1) -
V
_ FLAG _ CRL _ CHECK (1) -
V
_ FLAG _ CRL _ CHECK _ ALL (1) - XMLDecl (1)
- [] (14)
- []= (4)
- ^ (2)
-
_ _ drbref (1) -
_ _ drburi (1) -
_ _ getobj _ _ (2) -
_ _ setobj _ _ (2) -
_ dump (2) -
_ getproperty (1) -
_ invoke (1) -
_ load (2) - abs (1)
- add (3)
-
add
_ bindir (1) -
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ module (1) -
add
_ recipient (1) -
add
_ runtime _ dependency (1) -
add
_ special (1) -
add
_ trusted _ cert (1) -
add
_ value (1) - all (1)
-
all
_ classes _ and _ modules (1) - allocate (1)
-
allocation
_ sourcefile (1) -
allocation
_ sourceline (1) -
angle
_ with (1) -
arg
_ config (1) -
ask
_ if _ ok (1) -
asn1
_ flag (1) -
asn1
_ flag= (1) -
assign
_ defaults (1) - at (1)
- atan (1)
- attlistdecl (2)
- attlistdecl? (1)
-
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) -
auth
_ login (1) -
auth
_ plain (1) - autorequire= (1)
- base64 (1)
- bigdecimal (1)
-
bigdecimal
/ jacobian (1) -
bigdecimal
/ ludcmp (1) -
bigdecimal
/ math (1) -
bigdecimal
/ newton (1) -
bigdecimal
/ util (1) - bsearch (2)
- build (3)
-
build
_ cert (1) -
build
_ self _ signed _ cert (1) -
builtin
_ curves (1) - call (3)
-
call
_ cfunc (1) -
call
_ op (1) - callcc (1)
- casecmp (2)
- catch (2)
- ceil (3)
- chain (1)
- check (3)
-
check
_ circular? (1) -
check
_ closed (1) -
check
_ key (1) -
check
_ nonce (1) -
check
_ point (3) -
check
_ private _ key (1) -
check
_ signedness (2) -
check
_ sizeof (2) -
check
_ until (1) - checkbox (2)
-
checkbox
_ group (2) - children (1)
- civil (1)
- clamp (1)
- class (1)
-
class
_ eval (2) -
class
_ exec (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) - classes (1)
- cleanup (1)
-
clock
_ gettime (1) - clone (5)
-
close
_ on _ exec= (1) -
close
_ on _ exec? (1) - code (1)
- coerce (1)
- cofactor (1)
-
cofactor
_ expansion (1) - collect (10)
- collect! (3)
- collect2 (2)
-
collect
_ concat (3) -
collect
_ method (1) -
collect
_ specs (1) - column (1)
-
column
_ vector (1) -
column
_ vectors (1) - comment (1)
- commercial (1)
- component (1)
- config (1)
- connect (2)
-
connect
_ nonblock (2) -
const
_ get (1) -
const
_ set (1) - context (2)
- correct? (1)
- cos (1)
-
count
_ nodes (1) -
count
_ objects (1) -
count
_ objects _ size (1) -
count
_ tdata _ objects (1) - create (1)
-
current
_ cert (1) -
current
_ crl (1) -
curve
_ name (1) -
cvar
_ override _ check (1) - cycle (1)
- d (1)
- data (1)
-
dc
_ subject (1) -
dc
_ subject= (1) -
dc
_ subjects (1) - decode (1)
-
decode
_ all (1) - decrypt (3)
-
def
_ builtin _ commands (1) -
def
_ class (1) -
def
_ extend _ command (2) -
def
_ inspector (1) - default (4)
-
default
_ exec _ format (1) -
default
_ executable (1) -
default
_ executable= (1) -
default
_ record _ separator (1) -
default
_ record _ separator= (1) -
default
_ value (1) -
define
_ finalizer (2) -
define
_ singleton _ method (2) - degree (1)
- delete (11)
-
delete
_ at (1) -
delete
_ field (1) -
delete
_ if (1) -
delete
_ key (1) -
delete
_ observer (1) -
dependencies
_ ok? (1) -
dependency
_ order (1) -
deprecate
_ constant (1) - deq (2)
- det (1)
- detect (2)
- determinant (1)
-
development
_ dependencies (1) -
dh
_ compute _ key (1) - dig (4)
- directory (1)
- directory? (9)
-
directory
_ makable? (1) - disable (1)
- disconnect (1)
- disconnected? (1)
- display (1)
- div (2)
- divmod (1)
- dlunwrap (1)
-
document
_ children (1) -
document
_ children= (1) -
document
_ self (1) -
document
_ self= (1) - documented? (1)
- dot (1)
-
double
_ fig (1) - download (1)
- dowrite (1)
-
dsa
_ sign _ asn1 (1) -
dsa
_ verify _ asn1 (1) - dump (1)
- dup (2)
- each (7)
- each2 (1)
-
each
_ active _ object (1) -
each
_ child (3) -
each
_ classmodule (1) -
each
_ object (2) -
each
_ recursive (1) -
each
_ resource (1) -
each
_ strongly _ connected _ component (4) -
each
_ strongly _ connected _ component _ from (4) -
each
_ with _ object (2) - echo (4)
- echo= (2)
- echo? (2)
- eigen (1)
- eigensystem (1)
-
eigenvalue
_ matrix (1) - eigenvalues (1)
-
eigenvector
_ matrix (1) -
eigenvector
_ matrix _ inv (1) - eigenvectors (1)
- element (1)
-
element
_ name (1) - elementdecl (2)
- elementdecl? (1)
- elements (1)
-
elements
_ to _ f (1) -
elements
_ to _ i (1) -
elements
_ to _ r (1) - email (1)
- email= (1)
- enable (1)
-
enc
_ key (1) - encoding (1)
- encoding= (1)
-
ensure
_ dependency (1) -
entity
_ expansion _ limit (1) -
entity
_ expansion _ limit= (1) -
entity
_ expansion _ text _ limit (1) -
entity
_ expansion _ text _ limit= (1) - entitydecl (2)
- entitydecl? (1)
- entries (1)
- eql? (6)
- equal? (2)
- error (1)
- error= (1)
-
error
_ bytes (1) -
error
_ depth (1) -
error
_ string (1) - eval (4)
- evaluate (1)
- exclusive (1)
- exec (4)
-
exec
_ format (1) -
exec
_ format= (1) -
exec
_ under (1) - executable (1)
- executable= (1)
- executable? (7)
-
executable
_ real? (7) - executables (1)
- executables= (1)
- execute (7)
-
exit
_ value (1) - exp (1)
- expect (2)
- exponent (1)
- extend (1)
-
extend
_ object (4) - extended (1)
-
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) -
extract
_ entry (1) - fetch (7)
-
fetch
_ values (2) - field (1)
- file (1)
-
file
_ create (1) -
file
_ name (1) - files (1)
- files= (1)
- find (3)
-
find
_ all (2) -
find
_ class _ named (1) -
find
_ executable (1) -
find
_ first _ recursive (1) -
find
_ index (3) -
find
_ local _ symbol (1) -
find
_ matching (1) -
find
_ name (2) -
find
_ spec _ by _ name _ and _ version (1) -
finish
_ all _ jobs (3) - finite? (1)
- first (2)
- fix (1)
- flags= (1)
-
flat
_ map (3) - floor (3)
- force (1)
- format (1)
- frac (1)
- freeze (1)
-
from
_ file _ by _ path (1) -
from
_ installed _ gems (1) -
from
_ io (1) -
from
_ yaml (1) - frozen? (1)
-
full
_ gem _ path (1) -
full
_ name (1) -
garbage
_ collect (2) - generate (1)
-
generate
_ key (1) - generator (1)
-
get
_ value (1) - getresource (1)
- getresources (1)
- grep (2)
-
grep
_ v (2) - group (2)
- group= (1)
-
handle
_ interrupt (1) - handler (1)
-
has
_ rdoc (1) -
has
_ rdoc= (1) -
has
_ rdoc? (1) -
has
_ test _ suite? (1) -
has
_ unit _ tests? (1) - hash (1)
- hex (1)
- include? (1)
-
incomplete
_ input? (1) - independent? (2)
- index (4)
- infinite? (1)
- infinity? (1)
- initialize (1)
-
initialize
_ copy (1) - inject (4)
-
inner
_ product (1) -
insert
_ output (1) - inspect (15)
- inspect? (1)
-
inspect
_ i (1) -
inspect
_ mode (1) -
inspect
_ obj (1) -
inspect
_ value (1) - install (1)
-
install
_ extend _ commands (2) -
installation
_ path (1) -
installed
_ spec _ directories (1) - instance (1)
-
instance
_ eval (2) -
instance
_ of? (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - intersect? (1)
- invert (1)
- invert! (1)
- invoke (1)
-
ip
_ pktinfo (1) -
ipv6
_ unspecified? (1) -
irb
_ exit (1) -
is
_ a? (1) - iso8601 (1)
- issuer (1)
- itself (1)
- j (1)
- jd (1)
- jj (1)
-
json
/ add / bigdecimal (1) -
json
_ create (1) -
keep
_ alive _ timeout= (1) - key (2)
-
kind
_ of? (1) -
laplace
_ expansion (1) - last (3)
-
last
_ error (1) -
last
_ spec (1) -
last
_ spec _ tried (1) -
last
_ value (1) -
latest
_ gc _ info (1) -
latest
_ specs (3) -
legacy
_ repos (1) - letter (1)
-
lib
_ dirs _ for (1) -
lib
_ files (1) - limit (1)
- linger (1)
- list (2)
- listen (1)
- ln (1)
- load (4)
-
load
_ documents (1) -
load
_ file (2) -
load
_ gems _ in (1) -
load
_ gemspec (1) -
load
_ gemspecs (1) -
load
_ specification (1) -
load
_ specs (1) -
load
_ stream (1) - loaded= (1)
- loaded? (1)
-
loaded
_ from (1) -
loaded
_ from= (1) - local (2)
-
local
_ variable _ get (1) - log (1)
- logger (2)
-
long
_ name (1) - lookup (1)
- loop (1)
- ludecomp (1)
- lup (1)
-
lup
_ decomposition (1) - lusolve (1)
- magnitude (1)
- mail (1)
-
make
_ affine! (1) - map (9)
- map! (3)
-
marshal
_ dump (2) -
marshal
_ load (2) - match (2)
-
matching
_ file? (1) -
matching
_ files (1) - max (4)
-
max
_ by (1) -
memsize
_ of _ all (1) -
method
_ inspect (1) -
method
_ missing (2) - methods (1)
- min (4)
-
min
_ by (1) - minmax (2)
-
minmax
_ by (1) - mktime (2)
- mktmpdir (1)
- mode (2)
-
module
_ eval (2) -
module
_ exec (1) - modulo (1)
- mult (1)
- name (2)
- nan? (1)
- needed? (1)
- new (43)
- new2 (1)
- nil? (1)
-
node
_ type (2) - nonblock (1)
- nonzero? (1)
- norm (1)
- normalize (2)
-
normalize
_ yaml _ input (1) - notation (1)
- notationdecl (2)
- notationdecl? (1)
- notations (1)
- notify (2)
- nowrite (1)
-
object
_ nl (1) -
object
_ nl= (1) - oid (1)
-
on
_ XXX (1) -
on
_ curve? (1) -
on
_ default (1) -
only
_ signed (1) -
only
_ signed= (1) -
only
_ trusted (1) -
only
_ trusted= (1) - open (14)
- order (1)
- ordinal (1)
-
original
_ name (1) -
original
_ platform (1) -
original
_ platform= (1) - p (2)
- parent= (1)
-
parent
_ file _ name (1) - parse (2)
-
parse
_ openssl (1) -
parse
_ range _ header (1) -
parse
_ rfc2253 (1) - partition (1)
-
path
_ ok? (1) - pathmap (2)
- pivots (1)
- platform (1)
- platform= (1)
-
point
_ conversion _ form (1) -
point
_ conversion _ form= (1) - pop (4)
-
post
_ connection _ check (1) - power (2)
- pp (1)
- precs (1)
-
pretty
_ generate (1) -
pretty
_ print _ cycle (1) -
pretty
_ print _ instance _ variables (1) -
pretty
_ unparse (1) - prime? (1)
-
prime
_ fasttest? (1) -
primitive
_ convert (4) -
print
_ dependencies (1) -
private
_ decrypt (1) -
private
_ key (1) -
private
_ key= (1) -
private
_ key? (1) -
private
_ methods (1) - protected (1)
-
protected
_ instance _ methods (1) -
protected
_ method _ defined? (1) -
protected
_ methods (2) -
psych
_ to _ yaml (1) -
psych
_ y (1) - public (1)
- public= (1)
-
public
_ decrypt (1) -
public
_ key (2) -
public
_ key= (1) -
public
_ key? (1) -
public
_ method (1) -
public
_ methods (1) -
public
_ send (2) - purpose= (1)
- push (2)
- pushd (1)
- pushdir (1)
- putc (3)
- quo (1)
- r (1)
-
random
_ bytes (1) -
random
_ number (1) - raw (1)
-
rb
_ apply (1) -
rb
_ call (1) -
rb
_ call0 (1) -
rb
_ check _ convert _ type (1) -
rb
_ class _ protected _ instance _ methods (1) -
rb
_ cstr _ to _ dbl (1) -
rb
_ cvar _ declear (1) -
rb
_ data _ object _ alloc (1) -
rb
_ define _ protected _ method (1) -
rb
_ eval _ cmd (1) -
rb
_ eval _ string _ protect (1) -
rb
_ extend _ object (1) -
rb
_ f _ send (1) -
rb
_ funcall (1) -
rb
_ funcall2 (1) -
rb
_ funcall3 (1) -
rb
_ gc _ force _ recycle (1) -
rb
_ inspect (1) -
rb
_ load _ protect (1) -
rb
_ mod _ extend _ object (1) -
rb
_ mod _ protected (1) -
rb
_ obj _ inspect (1) -
rb
_ obj _ protected _ methods (1) -
rb
_ protect (1) -
rb
_ secure (1) -
rb
_ str _ to _ dbl (1) -
rb
_ thread _ check (1) -
rb
_ thread _ inspect (1) -
rb
_ thread _ sleep (1) -
rb
_ time _ timespec _ new (1) -
rcptto
_ list (1) -
reachable
_ objects _ from (1) - read (2)
-
read
_ only (1) - recipients (1)
-
record
_ location (1) -
record
_ separator (1) -
record
_ separator= (1) - rect (2)
- rectangular (4)
- recv (1)
-
recv
_ io (1) -
recv
_ nonblock (1) - recvfrom (3)
-
recvfrom
_ nonblock (2) - recvmsg (1)
-
recvmsg
_ nonblock (1) - redirect? (1)
- redirector (1)
- reduce (3)
- register (1)
- reject (11)
- reject! (10)
-
relative
_ path _ from (1) - reload (1)
- remainder (1)
- remove (1)
-
remove
_ by _ name (1) -
remove
_ class _ variable (1) -
remove
_ classes _ and _ modules (1) -
remove
_ const (1) -
remove
_ entry _ secure (1) -
remove
_ executables (1) -
remove
_ instance _ variable (1) -
remove
_ spec (1) - renew (1)
- replacement (1)
- replacement= (1)
-
require
_ relative (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
respond
_ to? (1) -
respond
_ to _ missing? (1) - restore (2)
- result (1)
- resume (1)
-
return
_ value (1) - round (4)
- row (1)
-
rubygems
/ commands / specification _ command (1) -
rubygems
/ security (1) -
safe
_ load (1) - sample (2)
-
satisfies
_ requirement? (1) -
save
_ exception _ mode (1) -
save
_ limit (1) -
save
_ rounding _ mode (1) -
scan
_ full (1) - search (2)
-
search
_ full (1) -
sec
_ fraction (1) -
second
_ fraction (1) - section (1)
- section= (1)
- sections (1)
- secure (2)
- secure= (2)
-
secure
_ visibility (1) - seed (1)
- seed= (1)
- select (20)
- select! (7)
- self (1)
- serial (1)
-
set
_ close _ on _ exec (1) -
set
_ current _ section (1) -
set
_ generator (1) -
set
_ last _ value (1) -
set
_ redirect (1) -
set
_ to _ infinity! (1) - sexp (1)
-
sexp
_ raw (1) -
sharing
_ detection (1) -
sharing
_ detection= (1) - shift (5)
-
short
_ name (1) - sign (1)
-
sign
_ cert (1) - sin (1)
-
singleline
_ format (1) -
singleline
_ pp (1) -
singleton
_ class (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - singular? (1)
- sleep (1)
- slice (1)
- slice! (1)
- sn (1)
- solve (1)
- sort (2)
-
sort
_ by (1) - spec (3)
- spec= (1)
-
spec
_ path (1) -
spec
_ predecessors (1) -
special
_ local _ set (1) - specific? (1)
-
specific
_ eval (1) - specification (1)
- split (1)
- sqrt (2)
-
ssl
_ timeout= (2) -
st
_ add _ direct (1) -
stand
_ alone? (1) - standalone (1)
- standalone= (1)
- start (4)
-
start
_ document (1) -
start
_ profile (1) - store (2)
-
strongly
_ connected _ components (2) - sub (1)
- subject (3)
- subject= (2)
-
subject
_ certificate (1) -
subject
_ certificate= (1) -
subject
_ request (1) -
subject
_ request= (1) - subsec (1)
- sum (2)
- system (1)
- system= (1)
- taint (1)
- tainted? (1)
- take (2)
- tap (1)
- tcp (2)
-
test
_ file (1) -
test
_ file= (1) -
test
_ files (1) -
test
_ files= (1) -
test
_ suite _ file (1) -
test
_ suite _ file= (1) -
thread
_ variable _ get (1) - time (1)
- time= (1)
- timeout (3)
- timeout= (1)
- title (1)
-
to
_ a (4) -
to
_ ary (2) -
to
_ bn (1) -
to
_ d (6) -
to
_ der (2) -
to
_ digits (1) -
to
_ f (1) -
to
_ h (1) -
to
_ i (1) -
to
_ int (1) -
to
_ json (4) -
to
_ pem (2) -
to
_ r (1) -
to
_ s (9) -
to
_ text (2) -
to
_ value (1) -
to
_ yaml (1) - tokenize (1)
-
trace
_ func (2) -
trace
_ object _ allocations (1) -
trace
_ object _ allocations _ start (1) -
trace
_ object _ allocations _ stop (1) - transact (3)
- transaction (1)
- truncate (3)
- trust (1)
- trust= (1)
-
trusted
_ cert _ path (1) - typecode (1)
- u (1)
- umask (1)
-
umethod
_ bind (1) -
undefine
_ finalizer (1) -
uninstall
_ gem (1) -
unit
_ test (1) - unpack (1)
- unparse (1)
- unshift (1)
- untaint (1)
- untrust (1)
- untrusted? (1)
-
urlsafe
_ base64 (1) -
urlsafe
_ decode64 (1) - v (1)
-
v
_ inv (1) - validate (1)
- value (6)
- values (3)
-
values
_ at (4) - ver (1)
- verify (1)
-
verify
_ chain (1) -
verify
_ chain= (1) -
verify
_ data (1) -
verify
_ data= (1) -
verify
_ gem (1) -
verify
_ root (1) -
verify
_ root= (1) -
verify
_ signer (1) -
verify
_ signer= (1) - version (1)
- version= (1)
- visibility (2)
-
wait
_ all _ jobs _ execution (1) -
warn
_ legacy (1) -
which
_ to _ update (1) -
with
_ werror (2) - wrap (2)
- write (6)
-
write
_ require _ paths _ file _ if _ needed (1) -
write
_ spec (1) - writeencoding (1)
- writethis (1)
-
xml
_ decl (1) - xmldecl (3)
- xmldecl? (1)
- xmlschema (1)
- xpopen (1)
- y (1)
-
yaml
_ initialize (1) -
yaml
_ tag (1) - yield (2)
- zero? (1)
- zip (2)
- | (3)
- クラス (1)
- セキュリティモデル (1)
- メソッド呼び出し(super・ブロック付き・yield) (1)
- リテラル (1)
- 制御構造 (1)
- 変数と定数 (1)
- 字句構造 (1)
- 手続きオブジェクトの挙動の詳細 (1)
- 正規表現 (1)
検索結果
先頭5件
-
Matrix
:: LUPDecomposition # l -> Matrix (63304.0) -
LUP分解の下半行列部分を返します。
LUP分解の下半行列部分を返します。 -
OpenSSL
:: PKey :: EC (63049.0) -
EC(Ellicptic Curve,楕円曲線)暗号鍵のクラスです。
EC(Ellicptic Curve,楕円曲線)暗号鍵のクラスです。
このクラスのメソッドについてより詳しく知りたい場合は openssl のドキュメント
の対応する関数の項を見てください。 -
Gem
:: Indexer # collect _ specs -> Gem :: SourceIndex (54901.0) -
Gem のキャッシュディレクトリ内の *.gem ファイルから Gem::Specification を集めます。
Gem のキャッシュディレクトリ内の *.gem ファイルから Gem::Specification を集めます。 -
Gem
:: SourceIndex . installed _ spec _ directories -> [String] (54901.0) -
gemspec ファイルがインストールされているディレクトリのリストを返します。
gemspec ファイルがインストールされているディレクトリのリストを返します。
@see Gem.#path -
static void special
_ local _ set(char c , VALUE val) (54901.0) -
$~ と $_ をセットします。 現在は c=0 が $_ で c=1 が $~ です。
$~ と $_ をセットします。
現在は c=0 が $_ で c=1 が $~ です。 -
OpenSSL
:: SSL :: SSLSocket # post _ connection _ check(hostname) -> true (54601.0) -
接続後検証を行います。
接続後検証を行います。
検証に成功した場合は true を返し、失敗した場合は例外
OpenSSL::SSL::SSLError を発生させます。
OpenSSL の API では、
OpenSSL::SSL::SSLSocket#connect や OpenSSL::SSL::SSLSocket#accept
での検証は実用的には不完全です。
CA が証明書に署名してそれが失効していないことしか確認しません。
実用上は証明書に記載されている事項を見て、接続先が妥当であるかを確認する
必要があります。通常は接続先ホストの FQDN と証明書に記載されている FQDN が
一致しているか... -
Shell
:: ProcessController # wait _ all _ jobs _ execution -> () (54601.0) -
全てのジョブの実行が終わるまで待ちます。
全てのジョブの実行が終わるまで待ちます。 -
Gem
:: Specification # executable=(executable) (46201.0) -
実行可能ファイル名をセットします。
実行可能ファイル名をセットします。
@param executable 実行可能ファイル名を指定します。 -
Gem
:: Specification # executables=(executables) (46201.0) -
実行可能ファイル名のリストをセットします。
実行可能ファイル名のリストをセットします。
@param executables 実行可能ファイル名のリストを指定します。 -
Enumerable
# collect {|item| . . . } -> [object] (45901.0) -
各要素に対してブロックを評価した結果を全て含む配列を返します。
各要素に対してブロックを評価した結果を全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にした配列を返す
p (1..3).map {|n| n * 3 } # => [3, 6, 9]
p (1..3).collect { "cat" } # => ["cat", "cat", "cat"]
//}
@see Array#collect, Array#map -
FileTest
. # executable?(file) -> bool (45901.0) -
ファイルがカレントプロセスにより実行できる時に真を返しま す。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
ファイルがカレントプロセスにより実行できる時に真を返しま
す。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
例:
FileTest.executable?('/bin') # => true
FileTest.executable?('/bin/bash') # => true -
FileTest
. # executable _ real?(file) -> bool (45901.0) -
ファイルがカレントプロセスの実ユーザか実グループで実行できる時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
ファイルがカレントプロセスの実ユーザか実グループで実行できる時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
//emlist[例][ruby]{
IO.write("empty.txt", "")
File.chmod(0744, "empty.txt")
FileTest.executable_real?("empty.txt") # => true
File.chmod(0644, "empty.txt")
FileTest.ex... -
Gem
:: Security :: AlmostNoSecurity -> Gem :: Security :: Policy (45901.0) -
ほとんどの検証を行わないポリシーです。
ほとんどの検証を行わないポリシーです。
署名されたデータの検証のみ行います。
このポリシーは何もしないよりはマシですが、ほとんど役に立たない上、
簡単に騙すことができるので、使用しないでください。
:verify_data => true,
:verify_signer => false,
:verify_chain => false,
:verify_root => false,
:only_trusted => false,
:only_signed => false -
Gem
:: Security :: LowSecurity -> Gem :: Security :: Policy (45901.0) -
低レベルのセキュリティのポリシーです。
低レベルのセキュリティのポリシーです。
署名されたデータと署名者の検証を行います。
このポリシーは何もしないよりはマシですが、ほとんど役に立たない上、
簡単に騙すことができるので、使用しないでください。
:verify_data => true,
:verify_signer => true,
:verify_chain => false,
:verify_root => false,
:only_trusted => false,
:only_signed => false -
Gem
:: SpecFetcher # load _ specs(source _ uri , file) -> object (45901.0) -
指定された source_uri, file から gemspec をロードします。
指定された source_uri, file から gemspec をロードします。
また、内部ではキャッシュの更新も行っています。
@param source_uri gemspec の置いてある URI を指定します。
@param file gemspec のファイル名を指定します。 -
Gem
:: Specification # default _ executable=(executable) (45901.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
@param executable 実行ファイルを指定します。 -
ObjectSpace
. # garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (45901.0) -
どこからも参照されなくなったオブジェクトを回収します。 GC.start と同じです。
どこからも参照されなくなったオブジェクトを回収します。
GC.start と同じです。
@param full_mark マイナー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。
注意: これらのキーワード引数は Ruby の実装やバージョンによって異なりま
す。将来のバージョンとの互換性も保証されませ... -
Vector
# collect {|x| . . . } -> Vector (45901.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]
//} -
Enumerable
# collect -> Enumerator (45601.0) -
各要素に対してブロックを評価した結果を全て含む配列を返します。
各要素に対してブロックを評価した結果を全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にした配列を返す
p (1..3).map {|n| n * 3 } # => [3, 6, 9]
p (1..3).collect { "cat" } # => ["cat", "cat", "cat"]
//}
@see Array#collect, Array#map -
Enumerable
# collect _ concat -> Enumerator (45601.0) -
各要素をブロックに渡し、その返り値を連結した配列を返します。
各要素をブロックに渡し、その返り値を連結した配列を返します。
ブロックの返り値は基本的に配列を返すべきです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[[1,2], [3,4]].flat_map{|i| i.map{|j| j*2}} # => [2,4,6,8]
//} -
Enumerable
# collect _ concat {| obj | block } -> Array (45601.0) -
各要素をブロックに渡し、その返り値を連結した配列を返します。
各要素をブロックに渡し、その返り値を連結した配列を返します。
ブロックの返り値は基本的に配列を返すべきです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[[1,2], [3,4]].flat_map{|i| i.map{|j| j*2}} # => [2,4,6,8]
//} -
File
. executable?(path) -> bool (45601.0) -
FileTest.#executable? と同じです。
FileTest.#executable? と同じです。
@param path パスを表す文字列を指定します。 -
File
. executable _ real?(path) -> bool (45601.0) -
FileTest.#executable_real? と同じです。
FileTest.#executable_real? と同じです。
@param path パスを表す文字列を指定します。 -
File
:: Stat # executable? -> bool (45601.0) -
実効ユーザ/グループIDで実行できる時に真を返します。
実効ユーザ/グループIDで実行できる時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).executable?
# 例
#=> true
//} -
File
:: Stat # executable _ real? -> bool (45601.0) -
実ユーザ/グループIDで実行できる時に真を返します。
実ユーザ/グループIDで実行できる時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).executable_real?
#例
#=> true
//} -
FileUtils
. collect _ method(opt) -> Array (45601.0) -
与えられたオプションを持つメソッド名の配列を返します。
与えられたオプションを持つメソッド名の配列を返します。
@param opt オプション名をシンボルで指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.collect_method(:preserve) # => ["cp", "cp_r", "copy", "install"]
//} -
Gem
:: DependencyList # spec _ predecessors -> Hash (45601.0) -
@todo ???
@todo ???
Return a hash of predecessors. <tt>result[spec]</tt> is an
Array of gemspecs that have a dependency satisfied by the named
spec. -
Gem
:: SpecFetcher # latest _ specs -> Hash (45601.0) -
キャッシュされている最新の gemspec を返します。
キャッシュされている最新の gemspec を返します。 -
Gem
:: Specification # default _ executable -> String | nil (45601.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。 -
Gem
:: Specification # executable -> String (45601.0) -
実行可能ファイル名を返します。
実行可能ファイル名を返します。 -
Gem
:: Specification # executables -> [String] (45601.0) -
実行可能ファイル名のリストを返します。
実行可能ファイル名のリストを返します。 -
IRB
:: Inspector # inspect _ value(v) -> () (45601.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
LUSolve
. # ludecomp(a , n , zero = 0 , one = 1) -> [Integer] (45601.0) -
n 次正方行列を表す配列 a を破壊的に変更し、返り値と併せて元の行列の LU 分解を提供します。
n 次正方行列を表す配列 a を破壊的に変更し、返り値と併せて元の行列の LU 分解を提供します。
LUSolve.#lusolve の引数を構築するために使います。
@param a 行列を BigDecimal の配列で指定します。(各要素を
Row-major order で 1 次元の配列にしたオブジェクトを指定し
ます)
@param n 引数 a の次元を整数で指定します。
@param zero 0 を表す値を指定します。
@param one 1 を表す値を指定します。
@return ピボットの位置を表す Integer の配... -
ObjectSpace
. # reachable _ objects _ from(obj) -> Array | nil (45601.0) -
obj から到達可能なすべてのオブジェクトを返します。マーク不能なオブジェ クトを指定した場合は nil を返します。本メソッドを使う事でメモリリークの 調査が行えます。
obj から到達可能なすべてのオブジェクトを返します。マーク不能なオブジェ
クトを指定した場合は nil を返します。本メソッドを使う事でメモリリークの
調査が行えます。
//emlist[例][ruby]{
# 配列クラス(Array)と 'a'、'b'、'c' に到達可能。
ObjectSpace.reachable_objects_from(['a', 'b', 'c'])
# => [Array, 'a', 'b', 'c']
//}
obj が 2 つ以上の同じオブジェクト x への参照を持つ場合、戻り値に含まれ
るオブジェクト x は 1 つだけです。
//emlist[例... -
ObjectSpace
. # trace _ object _ allocations { . . . } (45601.0) -
与えられたブロック内でオブジェクトのトレースを行います。
与えられたブロック内でオブジェクトのトレースを行います。
//emlist[例][ruby]{
require 'objspace'
class C
include ObjectSpace
def foo
trace_object_allocations do
obj = Object.new
p "#{allocation_sourcefile(obj)}:#{allocation_sourceline(obj)}"
end
end
end
C.new.foo #=> "objtrace.rb:8"
//} -
ObjectSpace
. # trace _ object _ allocations _ start -> nil (45601.0) -
オブジェクト割り当てのトレースを開始します。
オブジェクト割り当てのトレースを開始します。
@see ObjectSpace.#trace_object_allocations_stop -
ObjectSpace
. # trace _ object _ allocations _ stop -> nil (45601.0) -
オブジェクト割り当てのトレースを終了します。
オブジェクト割り当てのトレースを終了します。
トレースを終了する為には、ObjectSpace.#trace_object_allocations_startを呼んだ回数分だけこのメソッドを呼ぶ必要があります。
@see ObjectSpace.#trace_object_allocations_start -
OpenSSL
:: SSL :: OP _ SINGLE _ ECDH _ USE -> Integer (45601.0) -
@todo OpenSSL::SSL::SSLContext#options= で利用します。
@todo
OpenSSL::SSL::SSLContext#options= で利用します。 -
OpenSSL
:: SSL :: SSLSocket # connect _ nonblock -> self (45601.0) -
ノンブロッキング方式で TLS/SSL 通信をクライアントモードとして開始し、 サーバとのハンドシェイクを実行します。
ノンブロッキング方式で
TLS/SSL 通信をクライアントモードとして開始し、
サーバとのハンドシェイクを実行します。
IO が読み込み待ち、もしくは書き込み待ちになった場合は例外を
発生させ、ハンドシェイクを中断します。IO が読み込み/書き込み
可能状態になってからこのメソッドをもう一度呼ぶと
ハンドシェイクを再開します。
@raise OpenSSL::SSL::SSLError ハンドシェイクに失敗した(VERIFY_PEER で
証明書の検証に失敗した場合や、プロトコル合意に失敗したなど)
場合に発生します
@raise OpenSSL::SSL::S... -
REXML
:: XMLDecl # xmldecl(version , encoding , standalone) -> () (45601.0) -
内容を更新します。
内容を更新します。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil) -
Vector
# collect -> Enumerator (45601.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
# collect2(v) -> Enumerator (45601.0) -
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と、それに対応するインデックスを持つ引数 v (ベクトル or 配列)の要素との組に対して (2引数の) ブロックを評価し、その結果を要素として持つ配列を返します。
ブロックを省略した場合は Enumerator を返します。
@param v ブロック内で評価される(ベクトル or 配列)
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたとき... -
Vector
# collect2(v) {|x , y| . . . } -> Array (45601.0) -
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つ配列を返します。
ベクトルの各要素と、それに対応するインデックスを持つ引数 v (ベクトル or 配列)の要素との組に対して (2引数の) ブロックを評価し、その結果を要素として持つ配列を返します。
ブロックを省略した場合は Enumerator を返します。
@param v ブロック内で評価される(ベクトル or 配列)
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたとき... -
static VALUE specific
_ eval(int argc , VALUE *argv , VALUE klass , VALUE self) (37501.0) -
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。 -
VALUE rb
_ class _ protected _ instance _ methods(int argc , VALUE *argv , VALUE mod) (37201.0) -
Module#protected_instance_methods の実体。 モジュール mod に定義されている protected メソッド名の リストを文字列の配列で返します。
Module#protected_instance_methods の実体。
モジュール mod に定義されている protected メソッド名の
リストを文字列の配列で返します。 -
Struct
# select {|i| . . . } -> [object] (36937.0) -
構造体のメンバの値に対してブロックを評価した値が真であった要素を全て含 む配列を返します。真になる要素がひとつもなかった場合は空の配列を返しま す。
構造体のメンバの値に対してブロックを評価した値が真であった要素を全て含
む配列を返します。真になる要素がひとつもなかった場合は空の配列を返しま
す。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
Lots = Struct.new(:a, :b, :c, :d, :e, :f)
l = Lots.new(11, 22, 33, 44, 55, 66)
l.select {|v| (v % 2).zero? } #=> [22, 44, 66]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して... -
Array
# collect {|item| . . . } -> [object] (36901.0) -
各要素に対してブロックを評価した結果を全て含む配列を返します。
各要素に対してブロックを評価した結果を全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にする
p [1, 2, 3].map {|n| n * 3 } # => [3, 6, 9]
//}
@see Enumerable#collect, Enumerable#map -
Array
# select {|item| . . . } -> [object] (36901.0) -
各要素に対してブロックを評価した値が真であった要素を全て含む配列を 返します。真になる要素がひとつもなかった場合は空の配列を返します。
各要素に対してブロックを評価した値が真であった要素を全て含む配列を
返します。真になる要素がひとつもなかった場合は空の配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[1,2,3,4,5].select # => #<Enumerator: [1, 2, 3, 4, 5]:select>
[1,2,3,4,5].select { |num| num.even? } # => [2, 4]
//}
@see Enumerable#select
@see Array#select... -
GC
# garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (36901.0) -
ガーベージコレクトを開始します。
ガーベージコレクトを開始します。
GC.start や ObjectSpace.#garbage_collect と同じ働きをします。
GC.disable により GC が禁止されている場合でもガベージコレクトを開始します。
nil を返します。
@param full_mark マイナー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そう... -
Gem
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (36901.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (36901.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
Gem
:: Uninstaller # remove _ executables(gemspec) (36901.0) -
与えられた Gem::Specification に対応する実行ファイルを削除します。
与えられた Gem::Specification に対応する実行ファイルを削除します。
@param gemspec アンインストール指定されている Gem の Gem::Specification を指定します。 -
Kernel
# DelegateClass(superclass) -> object (36901.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = ExtArray.new
p a.class # => ExtArray
a.push 25
p a # => [25]
//} -
Kernel
. # BigDecimal(s) -> BigDecimal (36901.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無視されます。また、判断できない文字が出現
した時点で文字列は終了したものとみなされます。
@param n 必要な有効桁数(self の最大有効桁数)を整数で指定します。 n が
0 または省略されたときは、n の値は s の有効桁数とみなされます。... -
Kernel
. # BigDecimal(s , n) -> BigDecimal (36901.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無視されます。また、判断できない文字が出現
した時点で文字列は終了したものとみなされます。
@param n 必要な有効桁数(self の最大有効桁数)を整数で指定します。 n が
0 または省略されたときは、n の値は s の有効桁数とみなされます。... -
Matrix
# column _ vectors -> [Vector] (36901.0) -
自分自身を列ベクトルの配列として返します。
自分自身を列ベクトルの配列として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.column_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
//} -
Matrix
. column _ vector(column) -> Matrix (36901.0) -
要素がcolumnの(n,1)型の行列(列ベクトル)を生成します。
要素がcolumnの(n,1)型の行列(列ベクトル)を生成します。
@param column (n,1)型の行列として生成するVector Array オブジェクト -
Module
# class _ exec(*args) {|*vars| . . . } -> object (36901.0) -
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
モジュールのコンテキストで評価するとは、実行中そのモジュールが self になるということです。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ローカル変数、定数とクラス変数のスコープはブロックの外側のスコープになります。
@param args ブロックに渡す引数を指定します。
//emlist[例][ruby]{
class Thing
end
c = 1
Thing.class_exec{
def hello()
"Hello there!"
... -
Module
# module _ exec(*args) {|*vars| . . . } -> object (36901.0) -
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
モジュールのコンテキストで評価するとは、実行中そのモジュールが self になるということです。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ローカル変数、定数とクラス変数のスコープはブロックの外側のスコープになります。
@param args ブロックに渡す引数を指定します。
//emlist[例][ruby]{
class Thing
end
c = 1
Thing.class_exec{
def hello()
"Hello there!"
... -
REXML
:: Document # xml _ decl -> REXML :: XMLDecl | nil (36901.0) -
文書の XML 宣言を返します。
文書の XML 宣言を返します。
文書が XML 宣言を持たない場合は nil を返します。 -
REXML
:: Document :: DECLARATION -> REXML :: XMLDecl (36901.0) -
この定数は deprecated です。REXML::XMLDecl.default を 代わりに使ってください。
この定数は deprecated です。REXML::XMLDecl.default を
代わりに使ってください。
デフォルトとして使えるXML宣言オブジェクト。 -
REXML
:: Elements # collect(xpath = nil) {|element| . . } -> [object] (36901.0) -
Enumerable#collect と同様、 各子要素に対しブロックを呼び出し、その返り値の配列を返します。
Enumerable#collect と同様、
各子要素に対しブロックを呼び出し、その返り値の配列を返します。
xpath を指定した場合は、その XPath 文字列に
マッチする要素に対し同様の操作をします。
@param xpath XPath文字列
@see REXML::Elements#each -
Set
# select! {|element| . . . } -> self | nil (36901.0) -
各要素に対してブロックを評価し、その結果が偽であった要素を self から削除します。
各要素に対してブロックを評価し、その結果が偽であった要素を self から削除します。
@return 変更があった場合は self を、変更がなかった場合は nil を返します。 -
Shell
# executable?(file) -> bool (36901.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
# executable _ real?(file) -> bool (36901.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: CommandProcessor # executable?(file) -> bool (36901.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: CommandProcessor # executable _ real?(file) -> bool (36901.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: Filter # executable?(file) -> bool (36901.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: Filter # executable _ real?(file) -> bool (36901.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
VALUE rb
_ data _ object _ alloc(VALUE klass , void *datap , RUBY _ DATA _ FUNC dmark , RUBY _ DATA _ FUNC dfree) (36901.0) -
datap をラップするオブジェクトを生成し、返します。 そのクラスは klass となり、datap をマークするときは dmark、解放するときは dfree を使うようになります。
datap をラップするオブジェクトを生成し、返します。
そのクラスは klass となり、datap をマークするときは
dmark、解放するときは dfree を使うようになります。 -
YAML
:: DBM # select { . . . } -> [[String , object]] (36901.0) -
ブロックを評価して真になった要素のみを [キー, 値] から構成される配列に 格納して返します。ブロックが与えられなかった場合は、keys に対応する値を 配列に格納して返します。
ブロックを評価して真になった要素のみを [キー, 値] から構成される配列に
格納して返します。ブロックが与えられなかった場合は、keys に対応する値を
配列に格納して返します。
@param keys キーを文字列で指定します。複数指定することができます。
ブロックを与えるかどうかで戻り値が異なる事に注意してください。
@see YAML::DBM#values_at -
YAML
:: DBM # select(*keys) -> [object] (36901.0) -
ブロックを評価して真になった要素のみを [キー, 値] から構成される配列に 格納して返します。ブロックが与えられなかった場合は、keys に対応する値を 配列に格納して返します。
ブロックを評価して真になった要素のみを [キー, 値] から構成される配列に
格納して返します。ブロックが与えられなかった場合は、keys に対応する値を
配列に格納して返します。
@param keys キーを文字列で指定します。複数指定することができます。
ブロックを与えるかどうかで戻り値が異なる事に注意してください。
@see YAML::DBM#values_at -
Struct
# select -> Enumerator (36637.0) -
構造体のメンバの値に対してブロックを評価した値が真であった要素を全て含 む配列を返します。真になる要素がひとつもなかった場合は空の配列を返しま す。
構造体のメンバの値に対してブロックを評価した値が真であった要素を全て含
む配列を返します。真になる要素がひとつもなかった場合は空の配列を返しま
す。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
Lots = Struct.new(:a, :b, :c, :d, :e, :f)
l = Lots.new(11, 22, 33, 44, 55, 66)
l.select {|v| (v % 2).zero? } #=> [22, 44, 66]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して... -
Array
# collect -> Enumerator (36601.0) -
各要素に対してブロックを評価した結果を全て含む配列を返します。
各要素に対してブロックを評価した結果を全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にする
p [1, 2, 3].map {|n| n * 3 } # => [3, 6, 9]
//}
@see Enumerable#collect, Enumerable#map -
Array
# collect! -> Enumerator (36601.0) -
各要素を順番にブロックに渡して評価し、その結果で要素を 置き換えます。
各要素を順番にブロックに渡して評価し、その結果で要素を
置き換えます。
ブロックが与えられなかった場合は、自身と map! から生成した
Enumerator オブジェクトを返します。
//emlist[例][ruby]{
ary = [1, 2, 3]
ary.map! {|i| i * 3 }
p ary #=> [3, 6, 9]
ary = [1, 2, 3]
e = ary.map!
e.each{ 1 }
p ary #=> [1, 1, 1]
//}
@see Array#collect, Enumerator -
Array
# collect! {|item| . . } -> self (36601.0) -
各要素を順番にブロックに渡して評価し、その結果で要素を 置き換えます。
各要素を順番にブロックに渡して評価し、その結果で要素を
置き換えます。
ブロックが与えられなかった場合は、自身と map! から生成した
Enumerator オブジェクトを返します。
//emlist[例][ruby]{
ary = [1, 2, 3]
ary.map! {|i| i * 3 }
p ary #=> [3, 6, 9]
ary = [1, 2, 3]
e = ary.map!
e.each{ 1 }
p ary #=> [1, 1, 1]
//}
@see Array#collect, Enumerator -
Array
# select -> Enumerator (36601.0) -
各要素に対してブロックを評価した値が真であった要素を全て含む配列を 返します。真になる要素がひとつもなかった場合は空の配列を返します。
各要素に対してブロックを評価した値が真であった要素を全て含む配列を
返します。真になる要素がひとつもなかった場合は空の配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[1,2,3,4,5].select # => #<Enumerator: [1, 2, 3, 4, 5]:select>
[1,2,3,4,5].select { |num| num.even? } # => [2, 4]
//}
@see Enumerable#select
@see Array#select... -
Array
# select! -> Enumerator (36601.0) -
ブロックが真を返した要素を残し、偽を返した要素を自身から削除します。 変更があった場合は self を、 変更がなかった場合には nil を返します。
ブロックが真を返した要素を残し、偽を返した要素を自身から削除します。
変更があった場合は self を、
変更がなかった場合には nil を返します。
//emlist[例][ruby]{
a = %w{ a b c d e f }
a.select! {|v| v =~ /[a-z]/ } # => nil
a # => ["a", "b", "c", "d", "e", "f"]
//}
ブロックが与えられなかった場合は、自身と select! から生成した
Enumerator オブジェクトを返します。
@see Array#keep_if, Array#reject! -
Array
# select! {|item| block } -> self | nil (36601.0) -
ブロックが真を返した要素を残し、偽を返した要素を自身から削除します。 変更があった場合は self を、 変更がなかった場合には nil を返します。
ブロックが真を返した要素を残し、偽を返した要素を自身から削除します。
変更があった場合は self を、
変更がなかった場合には nil を返します。
//emlist[例][ruby]{
a = %w{ a b c d e f }
a.select! {|v| v =~ /[a-z]/ } # => nil
a # => ["a", "b", "c", "d", "e", "f"]
//}
ブロックが与えられなかった場合は、自身と select! から生成した
Enumerator オブジェクトを返します。
@see Array#keep_if, Array#reject! -
Base64
. # urlsafe _ decode64(str) -> String (36601.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例... -
BasicSocket
# recv _ nonblock(maxlen , flags = 0) -> String (36601.0) -
ソケットをノンブロッキングモードに設定した後、 recvfrom(2) でソケットからデータを受け取ります。
ソケットをノンブロッキングモードに設定した後、
recvfrom(2) でソケットからデータを受け取ります。
引数、返り値は BasicSocket#recv と同じです。
recvfrom(2) がエラーになった場合、
EAGAIN, EINTR を含め例外 Errno::EXXX が発生します。
@param maxlen 受け取る文字列の最大の長さを指定します。
@param flags recv(2) を参照してください。
@raise IOError
@raise Errno::EXXX recvfrom(2) がエラーになった場合などに発生します。 -
BasicSocket
# recvmsg _ nonblock(maxmesglen=nil , flags=0 , maxcontrollen=nil , opts={}) -> [String , Addrinfo , Integer , *Socket :: AncillaryData] (36601.0) -
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
ブロッキングの有無以外は BasicSocket#recvmsg と同じです。
詳しくはそちらを参照してください。
@param maxmesglen 受け取るメッセージの最大長
@param flags フラグ
@param maxcontrollen 受け取る補助データの最大長
@param opts ハッシュオプション -
Complex
# rectangular -> [Numeric , Numeric] (36601.0) -
実部と虚部を配列にして返します。
実部と虚部を配列にして返します。
//emlist[例][ruby]{
Complex(3).rect # => [3, 0]
Complex(3.5).rect # => [3.5, 0]
Complex(3, 2).rect # => [3, 2]
//}
@see Numeric#rect -
Complex
. rectangular(r , i = 0) -> Complex (36601.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(1, 2) # => (1+2i)
//}
@see Kernel.#Complex -
DBM
# select {|key , value| . . . } -> [Array] (36601.0) -
ブロックを評価して真になった要素のみを配列に格納して返します。
ブロックを評価して真になった要素のみを配列に格納して返します。
require 'dbm'
db1 = DBM.open('aaa.db', 0666, DBM::NEWDB)
db1[:a] = 'aaa'
db1[:b] = 'bbbbbb'
p db1.select {|key, value| key == 'a' } #=> [["a", "aaa"]] -
ENV
. select -> Enumerator (36601.0) -
環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ を返します。
環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ
を返します。 -
ENV
. select {|key , value| . . . } -> Hash (36601.0) -
環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ を返します。
環境変数名と値についてブロックを評価し、真を返したものを集めたハッシュ
を返します。 -
Enumerator
:: Lazy # collect {|item| . . . } -> Enumerator :: Lazy (36601.0) -
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>
1.step.lazy.collect{ |n| n.succ }.take(10).force
# => [2, 3, 4, 5, 6, 7, 8,... -
Enumerator
:: Lazy # collect _ concat {|item| . . . } -> Enumerator :: Lazy (36601.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
ブロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x は、以下の場合にのみ分解され、連結されます。
* x が配列であるか、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) ... -
Fcntl
:: FD _ CLOEXEC -> Integer (36601.0) -
close-on-exec フラグの値です。
close-on-exec フラグの値です。 -
GDBM
# select {|key , value| . . . } -> [[String]] (36601.0) -
ブロックを評価して真になった要素のみを配列に格納して返します。
ブロックを評価して真になった要素のみを配列に格納して返します。
require 'gdbm'
db1 = GDBM.open('aaa.gdbm', 0666, GDBM::NEWDB)
db1['a'] = 'aaa'
db1['b'] = 'bbb'
db1['c'] = 'ccc'
p db1.select{ |key, value| key == 'a' } #=> [["a", "aaa"]]
p db1.select{ |key, value| key != 'a' } #=> [["c", "ccc"], ["b", "bbb"]]
... -
Gem
. default _ exec _ format -> String (36601.0) -
デフォルトのインストールするコマンド名を決めるためのフォーマット文字列を返します。
デフォルトのインストールするコマンド名を決めるためのフォーマット文字列を返します。 -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (36601.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Gem
:: Package :: TarWriter # check _ closed (36601.0) -
自身に関連付けられた IO が既に close されているかどうかチェックします。
自身に関連付けられた IO が既に close されているかどうかチェックします。
@raise IOError 自身に関連付けられた IO が既に close されている場合に発
生します。 -
Gem
:: Server # latest _ specs(request , response) -> () (36601.0) -
メソッド名に対応する URI に対するリクエストを処理するメソッドです。
メソッド名に対応する URI に対するリクエストを処理するメソッドです。
@param request WEBrick::HTTPRequest オブジェクトが自動的に指定されます。
@param response WEBrick::HTTPResponse オブジェクトが自動的に指定されます。 -
Gem
:: SourceIndex # latest _ specs -> Array (36601.0) -
自身に含まれる最新の Gem::Specification のリストを返します。
自身に含まれる最新の Gem::Specification のリストを返します。 -
Hash
# select -> Enumerator (36601.0) -
key, value のペアについてブロックを評価し,真となるペアだけを含む ハッシュを生成して返します。
key, value のペアについてブロックを評価し,真となるペアだけを含む
ハッシュを生成して返します。
ブロックが与えられなかった場合は、自身と select から生成した
Enumerator オブジェクトを返します。
//emlist[][ruby]{
h = { "a" => 100, "b" => 200, "c" => 300 }
h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300}
h.select {|k,v| v < 200} #=> {"a" => 100}
//}
@see Hash#select!, ... -
Hash
# select {|key , value| . . . } -> Hash (36601.0) -
key, value のペアについてブロックを評価し,真となるペアだけを含む ハッシュを生成して返します。
key, value のペアについてブロックを評価し,真となるペアだけを含む
ハッシュを生成して返します。
ブロックが与えられなかった場合は、自身と select から生成した
Enumerator オブジェクトを返します。
//emlist[][ruby]{
h = { "a" => 100, "b" => 200, "c" => 300 }
h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300}
h.select {|k,v| v < 200} #=> {"a" => 100}
//}
@see Hash#select!, ... -
IO
# close _ on _ exec=(bool) (36601.0) -
自身に close-on-exec フラグを設定します。
自身に close-on-exec フラグを設定します。
このフラグをセットすると exec(2) 時にそのファイルデスクリプタを
close します。
@see fcntl(2)
@param bool 自身の close-on-exec フラグを true か false で指定します。
f = open("/dev/null")
f.close_on_exec = true
system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
... -
IO
# close _ on _ exec? -> bool (36601.0) -
自身に close-on-exec フラグが設定されていた場合 true を返します。 そうでない場合に false を返します。
自身に close-on-exec フラグが設定されていた場合 true を返します。
そうでない場合に false を返します。
f = open("/dev/null")
f.close_on_exec? #=> true
f.close_on_exec = false
f.close_on_exec? #=> false
f.close_on_exec = true
f.close_on_exec? #=> true
@see IO#close_on_e...