種類
- インスタンスメソッド (1039)
- 特異メソッド (387)
- モジュール関数 (152)
- マクロ (5)
ライブラリ
- ビルトイン (386)
- base64 (6)
- benchmark (1)
- bigdecimal (2)
-
bigdecimal
/ jacobian (1) -
cgi
/ core (1) -
cgi
/ html (47) -
cgi
/ util (12) - csv (6)
- date (12)
- dbm (5)
- delegate (1)
- digest (1)
-
digest
/ bubblebabble (1) - drb (4)
-
drb
/ timeridconv (1) - erb (7)
- etc (1)
- fiddle (5)
-
fiddle
/ import (1) - gdbm (3)
- getoptlong (1)
-
io
/ wait (2) - ipaddr (1)
-
irb
/ cmd / help (1) -
irb
/ cmd / load (1) -
irb
/ extend-command (2) -
irb
/ input-method (2) -
irb
/ output-method (3) - json (21)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (1) -
json
/ add / date _ time (1) -
json
/ add / exception (1) -
json
/ add / ostruct (1) -
json
/ add / range (1) -
json
/ add / rational (1) -
json
/ add / regexp (1) -
json
/ add / struct (1) -
json
/ add / symbol (1) -
json
/ add / time (1) - kconv (9)
- logger (6)
- matrix (66)
- mkmf (15)
- monitor (1)
-
net
/ ftp (8) -
net
/ http (21) -
net
/ imap (17) -
net
/ pop (7) -
net
/ smtp (2) - nkf (1)
- objspace (1)
- open-uri (7)
- open3 (3)
- openssl (171)
- optparse (21)
- pp (4)
- prettyprint (10)
- prime (18)
- psych (11)
- pty (2)
- rake (6)
-
rake
/ rdoctask (1) - rbconfig (1)
-
rdoc
/ context (1) -
rdoc
/ generator / ri (1) -
rdoc
/ markup (1) -
rdoc
/ parser / simple (1) -
rdoc
/ text (7) - readline (12)
- resolv (15)
-
rexml
/ document (45) -
rexml
/ sax2listener (4) -
rexml
/ streamlistener (2) -
rinda
/ rinda (7) -
rinda
/ tuplespace (9) - ripper (6)
-
ripper
/ filter (4) -
ripper
/ lexer (3) -
ripper
/ sexp (2) -
rubygems
/ command (1) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ digest / digest _ adapter (2) -
rubygems
/ format (3) -
rubygems
/ gem _ path _ searcher (1) -
rubygems
/ indexer (1) -
rubygems
/ installer (4) -
rubygems
/ old _ format (1) -
rubygems
/ package / tar _ input (5) -
rubygems
/ package / tar _ output (1) -
rubygems
/ package / tar _ reader / entry (1) -
rubygems
/ package / tar _ writer (10) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ requirement (1) -
rubygems
/ security (17) -
rubygems
/ source _ index (2) -
rubygems
/ source _ info _ cache (1) -
rubygems
/ source _ info _ cache _ entry (1) -
rubygems
/ spec _ fetcher (3) -
rubygems
/ specification (10) -
rubygems
/ user _ interaction (16) -
rubygems
/ validator (2) - sdbm (4)
- securerandom (5)
- shellwords (7)
- socket (36)
- stringio (42)
- strscan (19)
- syslog (4)
-
syslog
/ logger (1) - time (2)
- tmpdir (1)
- tracer (1)
- uri (62)
- weakref (1)
-
webrick
/ accesslog (3) -
webrick
/ cgi (4) -
webrick
/ htmlutils (1) -
webrick
/ httpauth (2) -
webrick
/ httpauth / basicauth (3) -
webrick
/ httpauth / digestauth (4) -
webrick
/ httpauth / htdigest (5) -
webrick
/ httpauth / htgroup (4) -
webrick
/ httpauth / htpasswd (5) -
webrick
/ httpauth / userdb (4) -
webrick
/ httpproxy (1) -
webrick
/ httprequest (6) -
webrick
/ httpresponse (17) -
webrick
/ https (1) -
webrick
/ httpserver (11) -
webrick
/ httpservlet / abstract (9) -
webrick
/ httpservlet / cgihandler (3) -
webrick
/ httpservlet / erbhandler (3) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httpservlet / prochandler (4) -
webrick
/ httpstatus (8) -
webrick
/ httputils (16) -
webrick
/ httpversion (7) -
webrick
/ log (10) -
webrick
/ server (2) -
webrick
/ ssl (1) -
webrick
/ utils (5) - win32ole (9)
-
yaml
/ dbm (3) - zlib (32)
クラス
-
ARGF
. class (12) - Addrinfo (17)
- Array (8)
- BasicSocket (4)
-
Benchmark
:: Tms (1) - BigDecimal (3)
- Binding (3)
- CGI (13)
- CSV (2)
-
CSV
:: Table (2) - Class (1)
- Complex (1)
- DBM (5)
-
DRb
:: DRbObject (1) -
DRb
:: DRbServer (2) -
DRb
:: TimerIdConv (1) - Date (9)
- DateTime (5)
- Delegator (1)
- Dir (7)
- ERB (3)
-
Encoding
:: Converter (10) -
Enumerator
:: ArithmeticSequence (5) - Exception (3)
-
Fiddle
:: Pointer (5) - File (14)
- Float (1)
- GDBM (3)
-
Gem
:: Command (1) -
Gem
:: Commands :: DependencyCommand (1) -
Gem
:: Commands :: LockCommand (1) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: DigestAdapter (2) -
Gem
:: Format (3) -
Gem
:: GemPathSearcher (1) -
Gem
:: Indexer (1) -
Gem
:: Installer (4) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarInput (5) -
Gem
:: Package :: TarOutput (1) -
Gem
:: Package :: TarReader :: Entry (1) -
Gem
:: Package :: TarWriter (6) -
Gem
:: Package :: TarWriter :: BoundedStream (2) -
Gem
:: Package :: TarWriter :: RestrictedStream (2) -
Gem
:: RemoteFetcher (11) -
Gem
:: RemoteFetcher :: FetchError (1) -
Gem
:: Requirement (1) -
Gem
:: Security :: Policy (9) -
Gem
:: Security :: Signer (3) -
Gem
:: SourceIndex (2) -
Gem
:: SourceInfoCache (1) -
Gem
:: SourceInfoCacheEntry (1) -
Gem
:: SpecFetcher (3) -
Gem
:: Specification (10) -
Gem
:: StreamUI (4) -
Gem
:: Validator (2) - GetoptLong (1)
- IO (36)
- IPAddr (1)
- IPSocket (1)
-
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: OutputMethod (2) -
IRB
:: ReadlineInputMethod (1) -
IRB
:: StdioInputMethod (1) -
IRB
:: StdioOutputMethod (1) - Integer (19)
-
JSON
:: State (4) - Logger (5)
-
Logger
:: Formatter (1) - MatchData (5)
- Matrix (62)
-
Matrix
:: LUPDecomposition (1) - Method (1)
- Module (30)
-
MonitorMixin
:: ConditionVariable (1) -
Net
:: FTP (8) -
Net
:: HTTP (9) -
Net
:: HTTPGenericRequest (3) -
Net
:: HTTPResponse (1) -
Net
:: IMAP (12) -
Net
:: IMAP :: BodyTypeBasic (1) -
Net
:: IMAP :: BodyTypeMessage (1) -
Net
:: IMAP :: BodyTypeMultipart (1) -
Net
:: IMAP :: BodyTypeText (1) -
Net
:: IMAP :: ContentDisposition (1) -
Net
:: POP3 (2) -
Net
:: POPMail (5) -
Net
:: SMTP (2) - NoMethodError (2)
- Numeric (20)
- Object (15)
-
OpenSSL
:: ASN1 :: BMPString (2) -
OpenSSL
:: ASN1 :: BitString (3) -
OpenSSL
:: ASN1 :: GeneralString (2) -
OpenSSL
:: ASN1 :: GraphicString (2) -
OpenSSL
:: ASN1 :: IA5String (2) -
OpenSSL
:: ASN1 :: ISO64String (2) -
OpenSSL
:: ASN1 :: NumericString (2) -
OpenSSL
:: ASN1 :: OctetString (2) -
OpenSSL
:: ASN1 :: Primitive (1) -
OpenSSL
:: ASN1 :: PrintableString (2) -
OpenSSL
:: ASN1 :: T61String (2) -
OpenSSL
:: ASN1 :: UTF8String (2) -
OpenSSL
:: ASN1 :: UniversalString (2) -
OpenSSL
:: ASN1 :: VideotexString (2) -
OpenSSL
:: BN (6) -
OpenSSL
:: Cipher (1) -
OpenSSL
:: Config (6) -
OpenSSL
:: Digest (1) -
OpenSSL
:: Digest :: DSS (2) -
OpenSSL
:: Digest :: DSS1 (2) -
OpenSSL
:: Digest :: MD2 (2) -
OpenSSL
:: Digest :: MD4 (2) -
OpenSSL
:: Digest :: MD5 (2) -
OpenSSL
:: Digest :: MDC2 (2) -
OpenSSL
:: Digest :: RIPEMD160 (3) -
OpenSSL
:: Digest :: SHA (2) -
OpenSSL
:: Digest :: SHA1 (2) -
OpenSSL
:: Digest :: SHA224 (2) -
OpenSSL
:: Digest :: SHA256 (2) -
OpenSSL
:: Digest :: SHA384 (2) -
OpenSSL
:: Digest :: SHA512 (2) -
OpenSSL
:: Engine (1) -
OpenSSL
:: HMAC (2) -
OpenSSL
:: Netscape :: SPKI (1) -
OpenSSL
:: OCSP :: BasicResponse (1) -
OpenSSL
:: OCSP :: Request (1) -
OpenSSL
:: PKCS7 (4) -
OpenSSL
:: PKCS7 :: SignerInfo (1) -
OpenSSL
:: PKey :: DH (3) -
OpenSSL
:: PKey :: DSA (4) -
OpenSSL
:: PKey :: EC (4) -
OpenSSL
:: PKey :: PKey (2) -
OpenSSL
:: PKey :: RSA (5) -
OpenSSL
:: SSL :: SSLContext (3) -
OpenSSL
:: SSL :: SSLSocket (2) -
OpenSSL
:: X509 :: Attribute (4) -
OpenSSL
:: X509 :: CRL (1) -
OpenSSL
:: X509 :: Certificate (3) -
OpenSSL
:: X509 :: Extension (2) -
OpenSSL
:: X509 :: ExtensionFactory (3) -
OpenSSL
:: X509 :: Request (3) -
OpenSSL
:: X509 :: Revoked (1) -
OpenSSL
:: X509 :: Store (3) - OpenStruct (1)
- OptionParser (19)
-
OptionParser
:: ParseError (2) - PP (2)
- PrettyPrint (10)
- Prime (10)
-
Prime
:: PseudoPrimeGenerator (4) - Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: ScalarScanner (2) -
RDoc
:: Context (1) -
RDoc
:: Generator :: RI (1) -
RDoc
:: Markup (1) -
RDoc
:: Options (1) -
RDoc
:: Parser :: Simple (1) -
REXML
:: AttlistDecl (1) -
REXML
:: Attribute (6) -
REXML
:: Attributes (8) -
REXML
:: Comment (2) -
REXML
:: Declaration (1) -
REXML
:: DocType (3) -
REXML
:: Document (2) -
REXML
:: Element (10) -
REXML
:: Entity (2) -
REXML
:: ExternalEntity (1) -
REXML
:: Formatters :: Default (1) -
REXML
:: NotationDecl (1) -
REXML
:: Text (2) -
REXML
:: XPath (3) -
Rake
:: RDocTask (1) - Random (3)
- Range (3)
- Rational (1)
- Regexp (8)
- Resolv (8)
-
Resolv
:: DNS :: Resource :: IN :: SRV (1) -
Resolv
:: DNS :: Resource :: SOA (1) -
Resolv
:: DNS :: Resource :: TXT (1) -
Resolv
:: Hosts (4) -
Rinda
:: SimpleRenewer (1) -
Rinda
:: TupleEntry (3) -
Rinda
:: TupleSpace (6) -
Rinda
:: TupleSpaceProxy (6) - Ripper (11)
-
Ripper
:: Filter (4) -
RubyVM
:: InstructionSequence (2) - SDBM (4)
- Socket (11)
-
Socket
:: AncillaryData (1) - String (121)
- StringIO (42)
- StringScanner (19)
- Struct (1)
- Symbol (11)
-
Syslog
:: Logger (1) - Thread (3)
-
Thread
:: ConditionVariable (1) - Time (4)
- Tracer (1)
- UDPSocket (1)
- UNIXSocket (1)
-
URI
:: FTP (5) -
URI
:: Generic (27) -
URI
:: HTTP (3) -
URI
:: LDAP (8) -
URI
:: MailTo (5) - Vector (3)
-
WEBrick
:: BasicLog (10) -
WEBrick
:: CGI (4) -
WEBrick
:: Cookie (20) -
WEBrick
:: GenericServer (3) -
WEBrick
:: HTTPAuth :: BasicAuth (3) -
WEBrick
:: HTTPAuth :: DigestAuth (4) -
WEBrick
:: HTTPAuth :: Htdigest (5) -
WEBrick
:: HTTPAuth :: Htgroup (4) -
WEBrick
:: HTTPAuth :: Htpasswd (5) -
WEBrick
:: HTTPProxyServer (1) -
WEBrick
:: HTTPRequest (7) -
WEBrick
:: HTTPResponse (17) -
WEBrick
:: HTTPServer (7) -
WEBrick
:: HTTPServer :: MountTable (4) -
WEBrick
:: HTTPServlet :: AbstractServlet (9) -
WEBrick
:: HTTPServlet :: CGIHandler (3) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (5) -
WEBrick
:: HTTPServlet :: ERBHandler (3) -
WEBrick
:: HTTPServlet :: FileHandler (7) -
WEBrick
:: HTTPServlet :: ProcHandler (4) -
WEBrick
:: HTTPUtils :: FormData (5) -
WEBrick
:: HTTPVersion (7) -
WIN32OLE
_ PARAM (4) -
WIN32OLE
_ VARIANT (5) - WeakRef (1)
-
YAML
:: DBM (3) -
Zlib
:: Deflate (5) -
Zlib
:: GzipReader (4) -
Zlib
:: GzipWriter (15) -
Zlib
:: Inflate (4)
モジュール
- Base64 (6)
-
CGI
:: HtmlExtension (47) - DRb (1)
- Digest (2)
-
ERB
:: Util (4) - Enumerable (2)
- Etc (1)
-
Fiddle
:: Importer (1) - FileTest (3)
- GC (2)
-
Gem
:: DefaultUserInteraction (4) -
Gem
:: Security (5) -
Gem
:: UserInteraction (8) -
IRB
:: ExtendCommandBundle (2) - JSON (7)
-
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (1) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Jacobian (1)
- Kconv (8)
- Kernel (44)
- Marshal (1)
- NKF (1)
-
Net
:: HTTPHeader (8) - ObjectSpace (1)
- Open3 (3)
-
OpenSSL
:: ASN1 (26) -
OpenSSL
:: Buffering (16) -
OpenSSL
:: PKCS5 (2) -
OpenSSL
:: Random (3) -
OpenSSL
:: SSL :: SocketForwarder (1) - OpenURI (2)
-
OpenURI
:: OpenRead (3) - PTY (2)
- Process (2)
-
Process
:: GID (2) -
Process
:: Sys (4) -
Process
:: UID (2) - Psych (3)
-
RDoc
:: Text (7) -
REXML
:: Node (1) -
REXML
:: SAX2Listener (4) -
REXML
:: Security (1) -
REXML
:: StreamListener (2) - RakeFileUtils (3)
- RbConfig (1)
- Readline (7)
-
RubyVM
:: AbstractSyntaxTree (1) - SecureRandom (5)
- Shellwords (7)
- Signal (2)
- Syslog (2)
-
Syslog
:: Macros (2) - URI (15)
-
WEBrick
:: AccessLog (3) -
WEBrick
:: HTMLUtils (1) -
WEBrick
:: HTTPAuth (2) -
WEBrick
:: HTTPAuth :: UserDB (4) -
WEBrick
:: HTTPStatus (8) -
WEBrick
:: HTTPUtils (11) -
WEBrick
:: Utils (5) - Zlib (4)
オブジェクト
- ENV (9)
-
Readline
:: HISTORY (5) - main (5)
キーワード
- % (4)
- * (6)
- ** (2)
- + (5)
- - (4)
-
/ (3) - << (9)
- <=> (3)
- == (4)
- === (2)
- =~ (2)
- BMPString (2)
- BitString (2)
- GeneralString (2)
- GraphicString (2)
- IA5String (2)
- ISO64String (2)
-
LOG
_ MASK (1) -
LOG
_ UPTO (1) - NumericString (2)
- OctetString (2)
- PrintableString (2)
- RSTRING (1)
-
RSTRING
_ END (1) -
RSTRING
_ LEN (1) -
RSTRING
_ LENINT (1) -
RSTRING
_ PTR (1) - String (1)
- T61String (2)
- URI (1)
- UTF8String (2)
- UniversalString (2)
- VideotexString (2)
- [] (38)
- []= (12)
-
_ dump (1) - ` (1)
- a (2)
-
accept
_ loop (1) - add (5)
-
add
_ attribute (4) -
add
_ attributes (1) -
add
_ file (2) -
add
_ file _ simple (2) -
add
_ handler (1) -
add
_ namespace (2) -
add
_ trusted _ cert (1) -
add
_ value (1) - adler32 (1)
- alert (2)
-
alert
_ error (2) -
alert
_ warning (2) -
alias
_ method (1) - all (1)
-
allocation
_ sourcefile (1) - alphanumeric (1)
-
arg
_ config (1) - array (1)
-
array
_ attribute (1) -
asciicompat
_ encoding (1) - ask (2)
-
ask
_ yes _ no (1) - attlistdecl (1)
-
attr
_ writer (1) - attribute (1)
-
attribute
_ alias _ singular (1) -
attribute
_ of (1) - attributes (1)
- attributes= (2)
-
auth
_ type= (1) - authenticate (2)
- autoload? (2)
- base (1)
- base64 (1)
- basename (1)
-
basic
_ auth (2) -
basic
_ quote _ characters= (1) -
basic
_ word _ break _ characters= (1) - binwrite (1)
- blockquote (2)
- body= (2)
-
body
_ stream (1) -
body
_ stream= (1) - breakable (2)
- bubblebabble (1)
- build (12)
- build2 (2)
-
build
_ cert (1) -
build
_ self _ signed _ cert (1) - bytes (2)
- byteslice (3)
-
cache
_ dir (1) - call (1)
- caller (3)
- capitalize (1)
- capitalize! (1)
- capture2 (1)
- capture2e (1)
- capture3 (1)
- casecmp (1)
- casecmp? (1)
-
cc
_ command (1) - center (1)
-
cert
_ chain= (1) - challenge (1)
-
change
_ privilege (2) - check (1)
-
check
_ private _ key (1) -
check
_ until (1) - checkbox (2)
-
checkbox
_ group (2) - children (2)
- chomp (1)
-
choose
_ from _ list (1) - chr (2)
- chunked= (1)
-
class
_ variable _ defined? (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) -
class
_ variables (1) -
client
_ error? (1) - coerce (3)
- cofactor (1)
-
cofactor
_ expansion (1) - collect (2)
- collect! (2)
- column (2)
-
column
_ vector (1) - columns (1)
- combine (2)
- comment (1)
- comment= (2)
- compile (1)
-
compile
_ error (1) -
completer
_ quote _ characters= (1) -
completer
_ word _ break _ characters= (1) -
completion
_ append _ character= (1) - component (1)
-
compute
_ key (1) - concat (3)
- confstr (1)
-
connect
_ from (2) -
connect
_ to (2) -
connection
_ for (1) -
const
_ defined? (1) -
const
_ get (1) -
const
_ source _ location (1) - constants (1)
-
content
_ length (1) -
content
_ length= (1) -
content
_ type= (1) - convert (2)
- count (1)
-
cpp
_ command (1) - crc32 (1)
-
create
_ ext (1) -
create
_ ext _ from _ string (1) -
create
_ extension (1) -
create
_ header (1) -
create
_ listeners (1) -
create
_ tmpsrc (1) - crit (1)
- critical= (1)
- crypt (1)
- curry (2)
- debug (1)
- decode64 (1)
-
decode
_ utf7 (1) -
decode
_ www _ form (1) -
decode
_ www _ form _ component (1) - decrypt (1)
-
default
_ argv (1) - deflate (3)
- delete (7)
- delete! (1)
-
delete
_ all (1) -
delete
_ at (1) -
delete
_ attribute (1) -
delete
_ passwd (2) -
delete
_ prefix (1) -
delete
_ prefix! (1) -
delete
_ suffix (1) -
delete
_ suffix! (1) - dequote (1)
- desc (1)
- description= (1)
-
dh
_ compute _ key (1) - diagonal (1)
- digest (16)
- dir (1)
-
dir
_ config (1) - dirname (1)
- disasm (1)
- disassemble (1)
- div (1)
- divmod (3)
- dn= (1)
-
do
_ DELETE (1) -
do
_ GET (6) -
do
_ HEAD (1) -
do
_ OPTIONS (2) -
do
_ POST (5) -
do
_ PUT (1) - doctype (2)
- domain (1)
- domain= (1)
- downcase (1)
- downcase! (1)
- download (1)
-
dsa
_ sign _ asn1 (1) -
dsa
_ verify _ asn1 (1) -
dummy
_ makefile (1) - dump (3)
-
dump
_ stream (1) - each (10)
-
each
_ element _ with _ attribute (1) -
each
_ line (5) -
each
_ prime (2) -
each
_ with _ index (2) - element (1)
- element= (1)
- empty (1)
-
enable
_ config (2) -
enable
_ ssl (2) - encode (3)
- encode! (2)
- encode64 (1)
-
encode
_ utf7 (1) -
encode
_ www _ form (1) -
encode
_ www _ form _ component (1) -
end
_ element (1) -
end
_ with? (1) - entity (1)
-
entity
_ expansion _ limit= (1) - entries (3)
- environment (1)
- eql? (3)
- error (1)
- error? (1)
-
error
_ string= (1) - escape (7)
- escape8bit (1)
- escapeElement (1)
- escapeHTML (1)
-
escape
_ element (1) -
escape
_ html (1) -
escape
_ path (1) - execute (2)
- exist? (1)
- expires (1)
- expires= (2)
- ext (1)
- extensions= (1)
- extname (1)
- extract (4)
-
extract
_ entry (1) -
family
_ addrinfo (2) -
fast
_ generate (1) -
fast
_ unparse (1) - fatal (1)
- fdiv (2)
- fetch (8)
-
fetch
_ path (1) -
fetch
_ size (1) -
fetch
_ spec (1) -
file
_ entries= (2) -
file
_ field (2) -
file
_ uri? (1) - filename (1)
- filename= (2)
-
filename
_ quote _ characters= (1) - filter= (1)
-
filter
_ backtrace (1) -
find
_ executable (1) -
find
_ index (3) -
find
_ proxy (1) - first (3)
-
first
_ minor (1) - floor (1)
- flush (5)
-
flush
_ left (1) -
force
_ encoding (1) - foreach (2)
- form (4)
- format (4)
-
format
_ date (1) -
format
_ datetime (1) -
formatted
_ program _ filename (1) - fragment= (1)
-
from
_ file _ by _ path (1) -
from
_ io (1) -
from
_ prime _ division (1) - ftype (1)
-
gem
_ signature (1) - generate (2)
-
generate
_ bin _ script (1) -
generate
_ line (1) -
generate
_ prime (1) -
generate
_ windows _ script (1) - get (2)
-
get
_ attribute (1) -
get
_ attribute _ ns (1) -
get
_ fields (1) -
get
_ file _ uri _ path (1) -
get
_ instance (2) -
get
_ line (1) -
get
_ passwd (3) -
get
_ path (1) -
get
_ print (2) -
get
_ response (1) -
get
_ value (1) - getaddress (4)
- getaddresses (3)
- getaddrinfo (2)
- getbyte (1)
- getname (3)
- getnameinfo (1)
- getnames (3)
- getpriority (1)
- getpty (1)
- gets (10)
- getservbyport (1)
- getsockopt (1)
- glob (1)
-
grant
_ privilege (2) -
gregorian
_ leap? (1) - group (1)
- gsub (6)
- gsub! (4)
- h (1)
- header (2)
- headers= (1)
- help (1)
- here? (1)
- hex (1)
- hexdigest (15)
- hexencode (1)
- hidden (2)
- homepage= (1)
- host= (1)
- hostname= (1)
- hstack (2)
- html (2)
-
html
_ escape (1) - identity (1)
- img (2)
- include? (1)
- indent= (1)
- index (5)
- inflate (3)
- info (1)
- info? (1)
- inherited (1)
- initialize (1)
- insert (1)
-
insert
_ output (1) - inspect (1)
-
install
_ alias _ method (1) -
instance
_ methods (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
int
_ from _ prime _ division (2) - ip (1)
-
irb
_ original _ method _ name (1) - iso8601 (2)
- jacobian (1)
- jisx0301 (1)
- join (4)
-
json
_ create (1) - kconv (2)
-
keep
_ alive= (1) - key (5)
-
laplace
_ expansion (1) - last (2)
-
last
_ match (1) - leap? (1)
- level (1)
- level= (1)
- lex (1)
- libpathflag (1)
- line (2)
- lineno= (1)
- lines (2)
-
link
_ command (1) - list (1)
- listen (3)
- ljust (1)
- load (1)
-
load
_ gemspec (1) -
load
_ mime _ types (1) -
load
_ private _ key (1) -
load
_ specs (1) -
local
_ variable _ defined? (1) -
local
_ variable _ get (1) -
local
_ variable _ set (1) - log (4)
- ls (1)
- mail (1)
- major (1)
- major= (1)
-
make
_ partial _ content (1) -
make
_ passwd (3) - map (2)
- map! (2)
- markup (1)
- match (1)
- match? (1)
- matches? (1)
-
matching
_ files (1) -
max
_ age (1) -
max
_ age= (1) - mdtm (1)
- members (1)
- merge (1)
- merge! (1)
-
merge
_ libs (1) -
method
_ defined? (1) - methods (1)
-
mime
_ type (1) - minor (3)
- minor= (1)
- mkdir (2)
- mktmpdir (1)
-
module
_ function (1) - modulo (2)
- mount (1)
-
mount
_ proc (2) - mtime= (1)
-
multipart
_ form (4) - name (2)
- name= (1)
- namespace (1)
- nest (1)
- new (96)
- new2 (1)
-
new
_ with _ uri (1) - nkf (1)
- nlst (1)
- normalize (1)
-
normalize
_ comment (1) -
normalize
_ uri (1) -
normalize
_ yaml _ input (1) - normalized= (1)
-
not
_ modified? (1) - notify (2)
- nowrite (1)
-
nowrite
_ flag= (1) - ntop (1)
-
object
_ nl= (1) - oid= (1)
-
ole
_ type (1) -
ole
_ type _ detail (1) - on (3)
-
on
_ XXX (1) -
on
_ default (1) -
only
_ signed= (1) -
only
_ trusted= (1) - opaque= (1)
- open (10)
-
open
_ uri (2) -
open
_ uri _ or _ path (1) - order (4)
- order! (2)
- ordering= (1)
-
orig
_ name= (1) -
original
_ platform= (1) -
overwrite
_ accessor (1) - pack (2)
-
pack
_ sockaddr _ in (1) -
pack
_ sockaddr _ un (1) - params (3)
- parse (8)
- parse! (1)
-
parse
_ csv (1) -
parse
_ header (1) -
parse
_ range _ header (1) -
parse
_ time (1) - partition (1)
- password= (1)
-
password
_ field (2) - path (2)
- path= (2)
-
path
_ info= (1) -
pathmap
_ replace (1) -
pbkdf2
_ hmac (1) -
pbkdf2
_ hmac _ sha1 (1) - peek (1)
- peep (1)
- permute (2)
- permute! (1)
- pipe (4)
- pointer= (1)
- pop (1)
- port= (1)
- pos= (2)
-
post
_ form (1) - pow (1)
- pread (1)
-
prepare
_ range (1) - prepend (2)
- pretty (1)
-
pretty
_ generate (1) -
pretty
_ print (3) -
pretty
_ print _ cycle (1) -
pretty
_ unparse (1) - prime? (4)
-
prime
_ division (3) -
prime
_ fasttest? (1) -
primitive
_ convert (4) - print (9)
-
print
_ dependencies (1) - printf (7)
- printn (1)
- priority (1)
- priority= (1)
-
priv
_ key= (2) - private (8)
-
private
_ class _ method (2) -
private
_ constant (1) -
private
_ decrypt (1) -
private
_ encrypt (1) -
private
_ instance _ methods (1) -
private
_ key= (1) -
private
_ method _ defined? (1) -
private
_ methods (1) - protected (1)
-
protected
_ instance _ methods (1) -
protected
_ method _ defined? (1) -
protected
_ methods (1) -
proxy
_ basic _ auth (2) -
pseudo
_ bytes (1) -
psych
_ to _ yaml (1) -
psych
_ y (1) - public (2)
-
public
_ decrypt (1) -
public
_ encrypt (1) -
public
_ instance _ methods (1) -
public
_ method _ defined? (1) -
public
_ methods (1) - push (1)
- putback (2)
- putc (2)
- puts (3)
- pwrite (1)
- query= (1)
-
query
_ string= (1) - quo (1)
- quote (3)
-
radio
_ group (2) -
random
_ bytes (2) -
random
_ string (1) - read (14)
-
read
_ all (2) -
read
_ body (1) -
read
_ nonblock (4) - readline (11)
- readlines (9)
- readlink (1)
- readpartial (7)
- realdirpath (1)
- realpath (1)
-
reason
_ phrase (1) -
reason
_ phrase= (1) - recv (1)
-
recv
_ nonblock (1) - recvfrom (2)
-
recvfrom
_ nonblock (2) - recvmsg (1)
-
recvmsg
_ nonblock (1) - redirect? (1)
- refresh (1)
- regexp (2)
- registry= (1)
- remainder (2)
-
remove
_ class _ variable (1) -
remove
_ handler (1) -
remove
_ instance _ variable (1) -
remove
_ private _ comments (1) - reopen (2)
- replacement= (1)
- request (1)
-
request
_ http _ version= (1) -
request
_ method= (1) -
request
_ uri= (1) -
required
_ attribute (1) -
required
_ attribute? (1) - reset (2)
-
respond
_ to _ missing? (2) - result (1)
-
result
_ with _ hash (1) -
rfc1123
_ date (1) - rfc3339 (1)
- rindex (4)
- rjust (1)
-
route
_ from (1) -
route
_ to (1) - row (2)
-
row
_ vector (1) - rows (1)
- rpartition (1)
- run (1)
-
sanitize
_ string (1) - say (1)
- scalar (1)
- scan (4)
-
scan
_ full (1) -
scan
_ until (1) - scheme= (1)
- scope= (1)
-
script
_ name= (1) -
scrolling
_ list (2) - scrub (3)
- scrub! (3)
-
search
_ full (1) - section (1)
- secure (1)
- secure= (1)
- seek (1)
- select (4)
- sendcmd (1)
- serial= (2)
-
server
_ error? (1) - service (3)
-
set
_ backtrace (2) -
set
_ close _ on _ exec (1) -
set
_ dictionary (2) -
set
_ encoding (3) -
set
_ error (1) -
set
_ non _ blocking (1) -
set
_ passwd (3) -
set
_ redirect (1) - setacl (1)
- setbyte (1)
- setpriority (1)
- setregid (1)
- setresgid (1)
- setresuid (1)
- setreuid (1)
-
setup
_ params (1) - sexp (1)
-
sexp
_ raw (1) -
sharing
_ detection (1) -
sharing
_ detection= (1) - shebang (1)
- shellescape (1)
- shelljoin (1)
- shellsplit (1)
- shellwords (1)
- sign (2)
-
sign
_ cert (1) -
singleline
_ format (1) -
singleton
_ methods (1) - skip (1)
-
skip
_ until (1) - slice (12)
-
sockaddr
_ in (1) -
sockaddr
_ un (1) - solve (1)
- space= (1)
-
space
_ before= (1) - spawn (1)
-
spec
_ path (1) - split (5)
-
split
_ header _ value (1) - sprintf (1)
- squeeze (1)
- squeeze! (1)
- start (3)
-
start
_ element (1) -
start
_ prefix _ mapping (1) -
start
_ service (1) -
start
_ with? (1) - starttls (1)
- stat (1)
- status (1)
- status= (1)
- step (10)
- store (2)
- strftime (2)
-
strict
_ decode64 (1) -
strict
_ encode64 (1) - string= (3)
-
strip
_ hashes (1) -
strip
_ newlines (1) -
strip
_ stars (1) - su (1)
- sub (5)
- sub! (3)
- submit (2)
- subscribe (1)
- success? (1)
- sum (1)
- summarize (2)
- summary= (1)
- swapcase (1)
- swapcase! (1)
- sync (1)
- sync= (2)
- sysread (5)
- syssign (1)
- sysverify (1)
- syswrite (3)
- tagging= (1)
- take (2)
- tcp (1)
-
terminate
_ interaction (1) - text (3)
-
text
_ field (2) - textarea (2)
- thread (1)
-
thread
_ variable? (1) - title= (1)
- to= (1)
-
to
_ a (1) -
to
_ csv (1) -
to
_ i (1) -
to
_ json (22) -
to
_ s (8) -
to
_ str (2) -
to
_ yaml (2) - toeuc (1)
- tojis (1)
- tokenize (2)
- tolocale (1)
- top (1)
- tosjis (1)
- toutf16 (1)
- toutf32 (1)
- toutf8 (1)
- tr (1)
- tr! (1)
-
tr
_ s (1) -
tr
_ s! (1) -
trace
_ var (1) - trap (4)
- truncate (1)
-
trusted
_ cert _ path (1) -
try
_ convert (1) -
try
_ file (1) - typealias (1)
- typecode= (1)
- u (1)
- udp (1)
- ui= (2)
-
uid
_ thread (1) - umount (1)
- unescape (3)
- unescapeElement (1)
- unescapeHTML (1)
-
unescape
_ element (1) -
unescape
_ html (1) - ungetbyte (1)
- ungetc (2)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - unit (1)
- unix (1)
-
unix
_ rights (1) -
unix
_ server _ loop (1) - unmount (1)
- unnormalize (1)
- unpack (1)
-
unpack
_ sockaddr _ un (1) - unparse (1)
- unsubscribe (1)
-
untrace
_ var (1) -
unused
_ bits= (1) - upcase (1)
- upcase! (1)
- update (2)
-
upper
_ bound= (1) - upto (1)
- urandom (1)
-
url
_ encode (1) -
urlsafe
_ base64 (1) -
urlsafe
_ decode64 (1) -
urlsafe
_ encode64 (1) -
use
_ ui (2) - user= (2)
- userinfo= (1)
-
valid
_ civil? (1) -
valid
_ commercial? (1) -
valid
_ date? (1) -
valid
_ jd? (1) -
valid
_ ordinal? (1) - value (3)
- value= (3)
-
values
_ at (5) - verify (10)
-
verify
_ callback= (3) -
verify
_ chain= (1) -
verify
_ compaction _ references (1) -
verify
_ data= (1) -
verify
_ depth= (2) -
verify
_ gem (2) -
verify
_ gem _ file (1) -
verify
_ mode= (1) -
verify
_ root= (1) -
verify
_ signer= (1) -
verify
_ trust _ dir (1) - version (1)
- version= (1)
-
virtual
_ host (1) - vstack (1)
- wait (2)
-
wait
_ writable (2) - warn (2)
- warning (1)
-
when
_ writing (1) -
with
_ config (2) -
with
_ object (2) -
world
_ writable? (2) - wrap (2)
- writable? (2)
-
writable
_ real? (2) - write (22)
-
write
_ nonblock (3) -
write
_ random _ file (1) -
write
_ smime (1) -
write
_ timeout= (1) - xmlschema (2)
- y (1)
- yaml (1)
- yydebug= (1)
- zero (2)
-
zipped
_ stream (1)
検索結果
先頭5件
- OpenSSL
:: ASN1 . # PrintableString(value) -> OpenSSL :: ASN1 :: PrintableString -> OpenSSL :: ASN1 :: PrintableString - OpenSSL
:: ASN1 . # PrintableString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString - PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object - Gem
:: UserInteraction # terminate _ interaction(*args) -> () - REXML
:: Security . entity _ expansion _ limit=(val)
-
OpenSSL
:: ASN1 . # PrintableString(value) -> OpenSSL :: ASN1 :: PrintableString -> OpenSSL :: ASN1 :: PrintableString (113473.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # PrintableString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString (112273.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (100873.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます... -
Gem
:: UserInteraction # terminate _ interaction(*args) -> () (100219.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param args 委譲先のメソッドに与える引数です。 -
REXML
:: Security . entity _ expansion _ limit=(val) (100219.0) -
実体参照の展開回数の上限を指定します。
実体参照の展開回数の上限を指定します。
XML 文書(REXML::Document)ごとの展開回数がこの値を越えると
例外を発生させ、処理を中断します。
デフォルトは 10000 です。
@param val 設定する上限値(整数)
@see REXML::Document.entity_expansion_limit -
int RSTRING
_ LENINT(RString str) (93019.0) -
引数 str の表す文字列のバイト数をint型にキャストして返します。
引数 str の表す文字列のバイト数をint型にキャストして返します。
@param str RString 構造体を指定します。
@see RSTRING_LEN -
Object
# instance _ variable _ defined?(var) -> bool (91519.0) -
インスタンス変数 var が定義されていたら真を返します。
インスタンス変数 var が定義されていたら真を返します。
@param var インスタンス変数名を文字列か Symbol で指定します。
//emlist[][ruby]{
class Fred
def initialize(p1, p2)
@a, @b = p1, p2
end
end
fred = Fred.new('cat', 99)
p fred.instance_variable_defined?(:@a) #=> true
p fred.instance_variable_defined?("@b") #=> true
p fred.instan... -
Binding
# local _ variable _ defined?(symbol) -> bool (90919.0) -
引数 symbol で指定した名前のローカル変数が定義されている場合に true を、 そうでない場合に false を返します。
引数 symbol で指定した名前のローカル変数が定義されている場合に true を、
そうでない場合に false を返します。
@param symbol ローカル変数名を Symbol オブジェクトで指定します。
//emlist[例][ruby]{
def foo
a = 1
binding.local_variable_defined?(:a) # => true
binding.local_variable_defined?(:b) # => false
end
//}
このメソッドは以下のコードの短縮形です。
//emlist[][ruby]{
bindin... -
Gem
:: Package :: TarWriter :: RestrictedStream # write(data) -> Integer (90919.0) -
与えられたデータを自身に関連付けられた IO に書き込みます。
与えられたデータを自身に関連付けられた IO に書き込みます。
@param data 書き込むデータを指定します。
@return 書き込んだデータのサイズを返します。 -
Addrinfo
. getaddrinfo(nodename , service , family=nil , socktype=nil , protocol=nil , flags=0) -> [Addrinfo] (82909.0) -
パラメータから複数の Addrinfo オブジェクトを生成し、その配列を返します。
...は曖昧な指定となるためです。
例:
require 'socket'
Addrinfo.getaddrinfo("www.kame.net", 80, nil, :STREAM)
#=> [#<Addrinfo: 203.178.141.194:80 TCP (www.kame.net:80)>,
# #<Addrinfo: [2001:200:0:8002:203:47ff:fea5:3085]:80 TCP (www.kame.net:80)>]
@param nodename ノード... -
Prime
# prime?(value , generator = Prime :: Generator23 . new) -> bool (82837.0) -
与えられた整数が素数である場合は、真を返します。 そうでない場合は偽を返します。
与えられた整数が素数である場合は、真を返します。
そうでない場合は偽を返します。
@param value 素数かどうかチェックする任意の整数を指定します。
@param generator 素数生成器のインスタンスを指定します。
@return 素数かどうかを返します。
引数 value に負の数を指定した場合は常に false を返します。
@see Prime.prime?, Prime::EratosthenesGenerator, Prime::TrialDivisionGenerator, Prime::Generator23 -
Prime
# prime _ division(value , generator= Prime :: Generator23 . new) -> [[Integer , Integer]] (82837.0) -
与えられた整数を素因数分解します。
与えられた整数を素因数分解します。
@param value 素因数分解する任意の整数を指定します。
@param generator 素数生成器のインスタンスを指定します。
@return 素因数とその指数から成るペアを要素とする配列です。つまり、戻り値の各要素は2要素の配列 [n,e] であり、それぞれの内部配列の第1要素 n は value の素因数、第2要素は n**e が value を割り切る最大の自然数 e です。
@raise ZeroDivisionError 与えられた数値がゼロである場合に発生します。
//emlist[例][ruby]{
require 'p... -
Prime
. prime?(value , generator = Prime :: Generator23 . new) -> bool (82837.0) -
Prime.instance.prime? と同じです。
Prime.instance.prime? と同じです。
@param value 素数かどうかチェックする任意の整数を指定します。
@param generator 素数生成器のインスタンスを指定します。
@return 素数かどうかを返します。
引数 value に負の数を指定した場合は常に false を返します。
@see Prime#prime? -
Prime
. prime _ division(value , generator= Prime :: Generator23 . new) -> [[Integer , Integer]] (82837.0) -
Prime.instance.prime_division と同じです。
Prime.instance.prime_division と同じです。
@param value 素因数分解する任意の整数を指定します。
@param generator 素数生成器のインスタンスを指定します。
@return 素因数とその指数から成るペアを要素とする配列です。つまり、戻り値の各要素は2要素の配列 [n,e] であり、それぞれの内部配列の第1要素 n は value の素因数、第2要素は n**e が value を割り切る最大の自然数 e です。
@raise ZeroDivisionError 与えられた数値がゼロである場合に発生します。
@see Prime... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (82837.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... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (82819.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='... -
String
# rindex(pattern , pos = self . size) -> Integer | nil (82537.0) -
文字列のインデックス pos から左に向かって pattern を探索します。 最初に見つかった部分文字列の左端のインデックスを返します。 見つからなければ nil を返します。
文字列のインデックス pos から左に向かって pattern を探索します。
最初に見つかった部分文字列の左端のインデックスを返します。
見つからなければ nil を返します。
引数 pattern は探索する部分文字列または正規表現で指定します。
pos が負の場合は、文字列の末尾から数えた位置から探索します。
rindex と String#index とでは、探索方向だけが逆になります。
完全に左右が反転した動作をするわけではありません。
探索はその開始位置を右から左にずらしながら行いますが、
部分文字列の照合はどちらのメソッドも左から右に向かって行います。
以下の例を参照して... -
Prime
# int _ from _ prime _ division(pd) -> Integer (82519.0) -
素因数分解された結果を元の数値に戻します。
素因数分解された結果を元の数値に戻します。
引数が [[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]] のようであるとき、
結果は p_1**e_1 * p_2**e_2 * .... * p_n**e_n となります。
@param pd 整数のペアの配列を指定します。含まれているペアの第一要素は素因数を、
第二要素はその素因数の指数をあらわします。
//emlist[例][ruby]{
require 'prime'
Prime.int_from_prime_division([[2,2], [3,1]]) #=> 12
P... -
Prime
. int _ from _ prime _ division(pd) -> Integer (82519.0) -
Prime.instance.int_from_prime_division と同じです。
Prime.instance.int_from_prime_division と同じです。
@param pd 整数のペアの配列を指定します。含まれているペアの第一要素は素因数を、
第二要素はその素因数の指数をあらわします。
@see Prime#int_from_prime_division -
Addrinfo
# family _ addrinfo(host , port) -> Addrinfo (82255.0) -
引数から自身に「似た」Addrinfo オブジェクトを生成します。
引数から自身に「似た」Addrinfo オブジェクトを生成します。
「似た」の意味はプロトコルファミリ、ソケットタイプ、プロトコルが
同じことを意味します。
require 'socket'
Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80)
#=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)>
Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")... -
Addrinfo
# family _ addrinfo(path) -> Addrinfo (82255.0) -
引数から自身に「似た」Addrinfo オブジェクトを生成します。
引数から自身に「似た」Addrinfo オブジェクトを生成します。
「似た」の意味はプロトコルファミリ、ソケットタイプ、プロトコルが
同じことを意味します。
require 'socket'
Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80)
#=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)>
Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")... -
OpenSSL
:: Buffering # printf(format , *args) -> nil (81937.0) -
format に従い引数 args を文字列に変換して 出力します。
format に従い引数 args を文字列に変換して
出力します。
IO#printf と同様です。
@param format 出力フォーマット文字列
@param arg 出力するオブジェクト
@see Kernel.#printf -
StringIO
# printf(format , *obj) -> nil (81937.0) -
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
@param format 文字列のフォーマットを指定します。Kernel.#format を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.printf("%c%c%c", 97, 98, 99)
a.string ... -
Matrix
. I(n) -> Matrix (81925.0) -
n次の単位行列を生成します。
n次の単位行列を生成します。
@param n 単位行列の次元
単位行列とは、対角要素が全て1で非対角要素が全て0であるような行列のことです。 -
Gem
:: Package :: TarWriter :: BoundedStream # write(data) -> Integer (81919.0) -
与えられたデータを自身に関連付けられた IO に書き込みます。
与えられたデータを自身に関連付けられた IO に書き込みます。
@param data 書き込むデータを指定します。
@return 書き込んだデータのサイズを返します。
@raise Gem::Package::TarWriter::FileOverflow Gem::Package::TarWriter::BoundedStream#limit を越えて
書き込もうとした場合に発生します。 -
OpenSSL
:: Buffering # print(*args) -> nil (81919.0) -
args を順に出力します。
args を順に出力します。
args の各要素を to_s で文字列に変換して
出力します。
IO#print とほぼ同様ですが、引数を省略した場合に $_ を出力する
機能はありません。
@param args 出力するオブジェクト -
StringIO
# print() -> nil (81919.0) -
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。 引数の扱いは Kernel.#print を参照して下さい。
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。
引数の扱いは Kernel.#print を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.print("hoge", "bar", "foo")
a.string #=> "hogebarfoo"
//} -
StringIO
# print(*obj) -> nil (81919.0) -
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。 引数の扱いは Kernel.#print を参照して下さい。
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。
引数の扱いは Kernel.#print を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.print("hoge", "bar", "foo")
a.string #=> "hogebarfoo"
//} -
StringIO
# string=(buf) (81919.0) -
自身が表す文字列を指定された buf に変更します。
自身が表す文字列を指定された buf に変更します。
buf はバッファとして使われ、書き込みメソッドによって書き換えられます。
自身は読み書き両用になりますが、
buf がフリーズされている場合には読み取り専用になります。
pos と lineno は 0 にセットされます。
@param buf 自身が新たに表す文字列を指定します。
@raise TypeError buf が nil の場合に発生します。 -
StringScanner
# string=(str) (81919.0) -
スキャン対象の文字列を str に変更して、マッチ記録を捨てます。
スキャン対象の文字列を str に変更して、マッチ記録を捨てます。
@param str スキャン対象の文字列を str に変更して、マッチ記録を捨てます。
@return str を返します。
//emlist[例][ruby]{
require 'strscan'
str = '0123'
s = StringScanner.new('test string')
s.string = str # => "0123"
s.scan(/\w+/) # => "0123"
//} -
WEBrick
:: HTTPAuth :: BasicAuth # authenticate(request , response) -> bool (81637.0) -
クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。
クライアントから送られてきたユーザ名とパスワードを認証します。
認証に失敗した場合は challenge を呼びます。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。 -
MonitorMixin
:: ConditionVariable # wait(timeout = nil) -> bool (81619.0) -
モニタのロックを開放し、現在のスレッドを停止します。
モニタのロックを開放し、現在のスレッドを停止します。
これを呼ぶスレッドはモニタのロックを保持している必要があります。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast
で起こされるまでスレッドは停止し続けます。
timeout を与えた場合は最大 timeout 秒まで停止した後にスレッドを
再開します。
実行を再開したスレッドはモニタのロックを保持した状態になります。
これによって危険領域(critical section)上で動作している
スレッドはただ一つになり... -
OpenSSL
:: ASN1 . # NumericString(value) -> OpenSSL :: ASN1 :: NumericString -> OpenSSL :: ASN1 :: NumericString (75673.0) -
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::NumericString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # NumericString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: NumericString (74473.0) -
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::NumericString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
Process
. # setpriority(which , who , prio) -> 0 (74155.0) -
プロセス、プロセスグループ、 ユーザのいずれかの現在のプライオリティを設定します 。プライオリティの設定に成功した場合は 0 を返します。
プロセス、プロセスグループ、
ユーザのいずれかの現在のプライオリティを設定します
。プライオリティの設定に成功した場合は 0 を返します。
@param which プライオリティを設定する対象の種類を以下の定数のいずれかで指定します。
* Process::PRIO_PROCESS
* Process::PRIO_PGRP
* Process::PRIO_USER
@param who which の値にしたがってプロセス ID、プロセスグループ ID、ユーザ ID のいずれかを整数で指定します。
@param prio プライオリティを -20 から 20 までの整数で設... -
Net
:: IMAP :: BodyTypeBasic # param -> { String => String } | nil (74104.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # param -> { String => String } | nil (74104.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: IMAP :: BodyTypeMultipart # param -> { String => String } (74104.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: IMAP :: BodyTypeText # param -> { String => String } | nil (74104.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: IMAP :: ContentDisposition # param -> { String => String } | nil (74104.0) -
Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。
Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。
ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"
* "SIZE" -
Gem
:: Installer # generate _ bin _ script(filename , bindir) (73537.0) -
Gem に入っているアプリケーションを実行するためのスクリプトを作成します。
Gem に入っているアプリケーションを実行するためのスクリプトを作成します。
@param filename ファイル名を指定します。
@param bindir 実行ファイルを配置するディレクトリを指定します。 -
Gem
:: Installer # generate _ windows _ script(filename , bindir) (73537.0) -
コマンドの実行を容易にするために Windows 向けのバッチファイルを作成します。
コマンドの実行を容易にするために Windows 向けのバッチファイルを作成します。
@param bindir 実行ファイルを配置するディレクトリを指定します。
@param filename ファイル名を指定します。 -
Gem
:: Indexer # sanitize _ string(string) -> String (73519.0) -
与えられた文字列をサニタイズします。
与えられた文字列をサニタイズします。
@param string サニタイズ対象の文字列を指定します。
@see Gem::Indexer#sanitize -
IO
# wait _ writable -> self (73519.0) -
self が書き込み可能になるまでブロックし、書き込み可能になったら self を 返します。
self が書き込み可能になるまでブロックし、書き込み可能になったら self を
返します。
timeout を指定した場合は、指定秒数経過するまでブロックし、タイムアウト
した場合は nil を返します。
@param timeout タイムアウトまでの秒数を指定します。
@see IO#wait_readable -
IO
# wait _ writable(timeout) -> self | nil (73519.0) -
self が書き込み可能になるまでブロックし、書き込み可能になったら self を 返します。
self が書き込み可能になるまでブロックし、書き込み可能になったら self を
返します。
timeout を指定した場合は、指定秒数経過するまでブロックし、タイムアウト
した場合は nil を返します。
@param timeout タイムアウトまでの秒数を指定します。
@see IO#wait_readable -
Process
. # getpriority(which , who) -> Integer (73237.0) -
which に従いプロセス、プロセスグループ、ユーザのいずれかの現在のプライオリティを整数で返します。
which に従いプロセス、プロセスグループ、ユーザのいずれかの現在のプライオリティを整数で返します。
@param which プライオリティの種類を次の定数で指定します。 Process::PRIO_PROCESS,
Process::PRIO_PGRP, Process::PRIO_USER。
@param who which の値にしたがってプロセス ID、プロセスグループ ID、ユーザ ID のいずれかを整数で指定します。
@raise Errno::EXXX プライオリティの取得に失敗した場合に発生します。
@raise NotImplement... -
IRB
:: ExtendCommandBundle . irb _ original _ method _ name(method _ name) -> String (73219.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method -
Thread
# priority -> Integer (73219.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。
メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの
priority を引き継ぎます。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b = Thread.new do
... -
Thread
# priority=(val) (73219.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。
メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの
priority を引き継ぎます。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b = Thread.new do
... -
Binding
# local _ variable _ set(symbol , obj) (72937.0) -
引数 symbol で指定した名前のローカル変数に引数 obj を設定します。
引数 symbol で指定した名前のローカル変数に引数 obj を設定します。
@param symbol ローカル変数名を Symbol オブジェクトで指定します。
@param obj 引数 symbol で指定したローカル変数に設定するオブジェクトを指定します。
//emlist[例][ruby]{
def foo
a = 1
bind = binding
bind.local_variable_set(:a, 2) # set existing local variable `a'
bind.local_variable_set(:b, 3) # create ... -
REXML
:: Entity # write(out , indent = -1) -> () (72937.0) -
実体宣言を文字列化したものを out に書き込みます。
実体宣言を文字列化したものを out に書き込みます。
@param out 出力先の IO オブジェクト
@param indent 利用されません。deprecated なパラメータです
@see REXML::Entity#to_s -
REXML
:: ExternalEntity # write(output , indent) -> () (72937.0) -
output へ self を文字列化して出力します。
output へ self を文字列化して出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの大きさ。無視されます。 -
Binding
# local _ variable _ get(symbol) -> object (72919.0) -
引数 symbol で指定した名前のローカル変数に設定された値を返します。
引数 symbol で指定した名前のローカル変数に設定された値を返します。
@param symbol ローカル変数名を Symbol オブジェクトで指定します。
@raise NameError 引数 symbol で指定したローカル変数が未定義の場合に発生します。
//emlist[例][ruby]{
def foo
a = 1
binding.local_variable_get(:a) # => 1
binding.local_variable_get(:b) # => NameError
end
//}
このメソッドは以下のコードの短縮形です。
//emlis... -
OpenSSL
:: X509 :: Certificate # verify(key) -> bool (72919.0) -
証明書の発行者の公開鍵で署名を検証します。
証明書の発行者の公開鍵で署名を検証します。
検証に成功した、すなわち self が key で署名されたことが
確認された場合に真を返します。
@param key 検証に利用する発行者の公開鍵 -
Prime
:: PseudoPrimeGenerator # with _ object(obj) {|prime , obj| . . . } -> object (72919.0) -
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
@param obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。
@see Enumerator#with_object -
RakeFileUtils
# nowrite(value = nil) { . . . } (72919.0) -
ファイルを書き込むかどうかを制御します。
ファイルを書き込むかどうかを制御します。
@param value 真を指定するとファイルを書き込みません。
例:
nowrite # 現在の状態を返します。
nowrite(v) # 与えられた状態に変更します。
nowrite(v) { code } # ブロックを評価する間だけ与えられた状態に変更します。
# ブロックの評価が終わると元の値に戻します。 -
RakeFileUtils
# when _ writing(msg = nil) { . . . } (72919.0) -
RakeFileUtils.nowrite_flag が真である場合与えられたブロックを実行せずに、 与えられたメッセージを表示します。
RakeFileUtils.nowrite_flag が真である場合与えられたブロックを実行せずに、
与えられたメッセージを表示します。
そうでない場合は、与えられたブロックを実行します。
@param msg 表示するメッセージを指定します。
例:
when_writing("Building Project") do
project.build
end -
RakeFileUtils
. nowrite _ flag=(flag) (72919.0) -
実際に動作を行うかどうか設定します。
実際に動作を行うかどうか設定します。
@param flag 実際に動作を行うかどうかを指定します。真を指定すると動作を実行しません。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :sample_file_task
file :sample_file_task do |t|
RakeFileUtils.nowrite_flag # => false
RakeFileUtils.nowrite_flag = true
RakeFileUtils.nowrite_flag # => true
end
//} -
URI
:: Generic # userinfo=(s) (72919.0) -
自身の userinfo を設定します。
自身の userinfo を設定します。
@param s 自身の userinfo を "username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registry を同時に設定した場合に発生します。
例:
require 'uri'
u = URI.pars... -
WEBrick
:: GenericServer # listen(address , port) -> [TCPServer] (72637.0) -
与えられたアドレスとポートで TCPServer オブジェクトを生成し listener として管理します。
与えられたアドレスとポートで TCPServer オブジェクトを生成し
listener として管理します。
@param address アドレスを文字列で指定します。
@param port listen するポートを整数で指定します。
@see WEBrick::GenericServer#listeners, TCPServer#listen -
Prime
:: PseudoPrimeGenerator # with _ object(obj) -> Enumerator (72619.0) -
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
@param obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。
@see Enumerator#with_object -
Matrix
# find _ index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil (65437.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
指定した値と一致する要素の位置を [row, column] という配列で返します。
ブロックを与えた場合は各要素を引数としてブロックを呼び出し、
返り値が真であった要素の位置を返します。
複数の位置で値が一致する/ブロックが真を返す、場合は最初
に見つかった要素の位置を返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ ... -
Matrix
# find _ index(value , selector = :all) -> [Integer , Integer] | nil (65437.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
指定した値と一致する要素の位置を [row, column] という配列で返します。
ブロックを与えた場合は各要素を引数としてブロックを呼び出し、
返り値が真であった要素の位置を返します。
複数の位置で値が一致する/ブロックが真を返す、場合は最初
に見つかった要素の位置を返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ ... -
Addrinfo
# getnameinfo(flags=0) -> [String , String] (65419.0) -
ノード名とサービスを文字列の配列で返します。
ノード名とサービスを文字列の配列で返します。
flags には Socket::NI_??? という名前の定数のビット OR を渡します。
require 'socket'
Addrinfo.tcp("127.0.0.1", 80).getnameinfo
#=> ["localhost", "www"]
Addrinfo.tcp("127.0.0.1", 80).getnameinfo(Socket::NI_NUMERICSERV)
#=> ["localhost", "80"]
@param flags フラグ
@raise SocketError getnam... -
WEBrick
:: Utils . # random _ string(len) -> String (64819.0) -
A-Z, a-z, 0-9 からなる長さ len のランダムな文字列を返します。
A-Z, a-z, 0-9 からなる長さ len のランダムな文字列を返します。
@param len 得たい文字列の長さを整数で指定します。単位はバイトです。
require 'webrick'
p WEBrick::Utils.random_string(10) #=> "xF0jwU4RJd" -
String
# lines(rs = $ / , chomp: false) -> [String] (64537.0) -
文字列中の各行を文字列の配列で返します。(self.each_line.to_a と同じです)
文字列中の各行を文字列の配列で返します。(self.each_line.to_a と同じです)
//emlist[][ruby]{
"aa\nbb\ncc\n".lines # => ["aa\n", "bb\n", "cc\n"]
//}
行の区切りは rs に指定した文字列で、 そのデフォルト値は変数 $/ の値です。
各 line には区切りの文字列も含みます。
rs に nil を指定すると行区切りなしとみなします。 rs に空文字列 "" を指
定すると「パラグラフモード」になり、 改行コードが 2 つ以上連続するとこ
ろで文字列を分割します (つまり空行で分割します)。
... -
OpenSSL
:: Buffering # readline(eol= $ / ) -> String (64519.0) -
通信路から一行読み込んで、それを返します。
通信路から一行読み込んで、それを返します。
行区切りは eol で指定した文字列/正規表現になります。
読み込みが終端に到達した場合は例外 EOFError を発生します。
IO#readline と同様ですが、区切り文字列に
"" を渡した場合や、nil を渡したときの意味が異なり、
これらの場合は正しく動作しません。
@param eol 行区切り文字列/正規表現
@raise EOFError 読み込みが終端に到達した場合に発生します。 -
OpenSSL
:: Buffering # readlines(eol= $ / ) -> [String] (64519.0) -
データを通信路から末端まで全て読み込んで、 各行を要素として持つ配列を返します。
データを通信路から末端まで全て読み込んで、
各行を要素として持つ配列を返します。
行区切りは eol で指定した文字列/正規表現になります。
IO#readlines と同様ですが、区切り文字列に
"" を渡した場合や、nil を渡したときの意味が異なり、
これらの場合は正しく動作しません。
@param eol 行区切り文字列/正規表現 -
StringIO
# readline(rs = $ / ) -> String (64519.0) -
自身から 1 行読み込んで、その文字列を返します。
自身から 1 行読み込んで、その文字列を返します。
文字列の終端に到達した時には、例外 EOFError を発生させます。
IO#readline と違い読み込んだ文字列を変数 $_ にセットしません。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@raise EOFError 文字列の終端に到達した時に発生します。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][rub... -
StringIO
# readlines(rs = $ / ) -> [String] (64519.0) -
自身からデータを全て読み込んで、その各行を要素としてもつ配列を返します。 既に文字列の終端に達していれば空配列 [] を返します。
自身からデータを全て読み込んで、その各行を要素としてもつ配列を返します。
既に文字列の終端に達していれば空配列 [] を返します。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge\nfoo\nbar\n")
a.readlines ... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO (64273.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
URI である文字列 name のリソースを取得して StringIO オブジェクト
として返します。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read
OpenURI.open_uri('http://www.example.com'){|... -
StringIO
# set _ encoding(ext _ enc , int _ enc) -> self (64255.0) -
自身のエンコーディングを指定されたエンコーディングに設定します。
自身のエンコーディングを指定されたエンコーディングに設定します。
@param ext_enc エンコーディングを指定します。
nil を指定した場合は Encoding.default_external が
使われます。
@param int_enc 無視されます。IO クラスの API との互換性のために用
意されています。
@param opt 無視されます。IO クラスの API との互換性のために用意さ
れています。 -
StringIO
# set _ encoding(ext _ enc , int _ enc , opt) -> self (64255.0) -
自身のエンコーディングを指定されたエンコーディングに設定します。
自身のエンコーディングを指定されたエンコーディングに設定します。
@param ext_enc エンコーディングを指定します。
nil を指定した場合は Encoding.default_external が
使われます。
@param int_enc 無視されます。IO クラスの API との互換性のために用
意されています。
@param opt 無視されます。IO クラスの API との互換性のために用意さ
れています。 -
Matrix
# find _ index(selector = :all) -> Enumerator (64237.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
指定した値と一致する要素の位置を [row, column] という配列で返します。
ブロックを与えた場合は各要素を引数としてブロックを呼び出し、
返り値が真であった要素の位置を返します。
複数の位置で値が一致する/ブロックが真を返す、場合は最初
に見つかった要素の位置を返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ ... -
Rinda
:: TupleSpace # write(tuple , sec = nil) -> Rinda :: TupleEntry (64237.0) -
tuple をタプルスペースに加えます。 tuple を管理するための Rinda::TupleEntry オブジェクトを返します。
tuple をタプルスペースに加えます。
tuple を管理するための Rinda::TupleEntry オブジェクトを返します。
sec で追加したタプルの有効期限を指定できます。
追加されてから sec 秒過ぎたタプルはタプルスペースから削除されます。
nil は無限を意味し、この場合にはタプルは経過時間によっては削除されません。
返り値の Rinda::TupleEntry オブジェクトを使ってタプルを明示的に
キャンセルしたり有効期限を変更したりできます。ただし、利用にはGCなどに
気を付ける必要があります。
詳しくはRinda::TupleEntry のエントリーを見てくださ... -
Rinda
:: TupleSpaceProxy # write(tuple , sec = nil) -> Rinda :: TupleEntry (64237.0) -
tuple をタプルスペースに加えます。 tuple を管理するための Rinda::TupleEntry オブジェクトを返します。
tuple をタプルスペースに加えます。
tuple を管理するための Rinda::TupleEntry オブジェクトを返します。
内部的にはリモートオブジェクトの Rinda::TupleSpace#write にフォワードされます。
詳細は Rinda::TupleSpace#write を参照してください。
@param tuple 追加する tuple (配列かHash)
@param sec 有効期限(秒数) -
String
# each _ line(rs = $ / , chomp: false) {|line| . . . } -> self (64237.0) -
文字列中の各行に対して繰り返します。 行の区切りは rs に指定した文字列で、 そのデフォルト値は変数 $/ の値です。 各 line には区切りの文字列も含みます。
文字列中の各行に対して繰り返します。
行の区切りは rs に指定した文字列で、
そのデフォルト値は変数 $/ の値です。
各 line には区切りの文字列も含みます。
rs に nil を指定すると行区切りなしとみなします。
rs に空文字列 "" を指定すると「パラグラフモード」になり、
改行コードが 2 つ以上連続するところで文字列を分割します
(つまり空行で分割します)。
@param rs 行末を示す文字列
@param chomp true を指定すると各行の末尾から rs を取り除きます。
//emlist[例][ruby]{
"aa\nbb\ncc\n".each_... -
String
# index(pattern , pos = 0) -> Integer | nil (64237.0) -
文字列のインデックス pos から右に向かって pattern を検索し、 最初に見つかった部分文字列の左端のインデックスを返します。 見つからなければ nil を返します。
文字列のインデックス pos から右に向かって pattern を検索し、
最初に見つかった部分文字列の左端のインデックスを返します。
見つからなければ nil を返します。
引数 pattern は探索する部分文字列または正規表現で指定します。
pos が負の場合、文字列の末尾から数えた位置から探索します。
@param pattern 探索する部分文字列または正規表現
@param pos 探索を開始するインデックス
//emlist[例][ruby]{
p "astrochemistry".index("str") # => 1
p "reg... -
String
# lines(rs = $ / , chomp: false) {|line| . . . } -> self (64237.0) -
文字列中の各行を文字列の配列で返します。(self.each_line.to_a と同じです)
文字列中の各行を文字列の配列で返します。(self.each_line.to_a と同じです)
//emlist[][ruby]{
"aa\nbb\ncc\n".lines # => ["aa\n", "bb\n", "cc\n"]
//}
行の区切りは rs に指定した文字列で、 そのデフォルト値は変数 $/ の値です。
各 line には区切りの文字列も含みます。
rs に nil を指定すると行区切りなしとみなします。 rs に空文字列 "" を指
定すると「パラグラフモード」になり、 改行コードが 2 つ以上連続するとこ
ろで文字列を分割します (つまり空行で分割します)。
... -
String
# force _ encoding(encoding) -> self (64219.0) -
文字列の持つエンコーディング情報を指定された encoding に変えます。
文字列の持つエンコーディング情報を指定された encoding に変えます。
このとき実際のエンコーディングは変換されず、検査もされません。
Array#pack などで得られたバイト列のエンコーディングを指定する時に使います。
@param encoding 変更するエンコーディング情報を表す文字列か Encoding オブジェクトを指定します。
//emlist[例][ruby]{
s = [164, 164, 164, 237, 164, 207].pack("C*")
p s.encoding #=> ASC... -
WEBrick
:: HTTPResponse # request _ uri=(uri) (64219.0) -
リクエストの URI をセットします。 デフォルトは nil です。
リクエストの URI をセットします。
デフォルトは nil です。
@param uri リクエストの URI を URI オブジェクトで指定します。 -
Gem
:: Security :: Policy # verify _ gem(signature , data , chain , time = Time . now) -> Array (63973.0) -
与えられたデータを与えられた署名と証明書チェーンで検証します。
与えられたデータを与えられた署名と証明書チェーンで検証します。
@param signature 署名を指定します。
@param data 検証するデータを指定します。
@param chain 検証で使用する証明書チェーンを指定します。
@param time この時刻に有効であることを検証する。
@raise Gem::Security::Exception 検証に失敗した場合に発生します。 -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|sio| . . . } -> nil (63973.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
URI である文字列 name のリソースを取得して StringIO オブジェクト
として返します。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read
OpenURI.open_uri('http://www.example.com'){|... -
Gem
:: Security . verify _ trust _ dir(path , perms) (63937.0) -
信頼するディレクトリが存在することを確認します。
信頼するディレクトリが存在することを確認します。
与えられたパスが存在する場合、ディレクトリであることを確認します。
そうでない場合は、ディレクトリを作成してパーミッションを変更します。
@param path 確認するパスを指定します。
@param perms ディレクトリを作成する場合のパーミッションを指定します。
@raise Gem::Security::Exception path がディレクトリでない場合に発生します。 -
REXML
:: Attribute # write(output , indent = -1) -> object (63937.0) -
output に self の情報を name='value' という形式で書き込みます。
output に self の情報を name='value' という形式で書き込みます。
output が返ります。
@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される -
Zlib
:: GzipWriter # printf(format , *args) -> nil (63937.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、自身に出力します。
C 言語の printf と同じように、format に従い引数
を文字列に変換して、自身に出力します。
@param format フォーマット文字列を指定します。print_format を参照してください。
@param args フォーマットされるオブジェクトを指定します。
require 'zlib'
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.printf("\n%9s", "b... -
Gem
:: Security :: Policy # verify _ chain=(flag) (63919.0) -
証明書チェーンを検証するかどうかを設定します。
証明書チェーンを検証するかどうかを設定します。
@param flag 真、または偽を指定します。 -
Gem
:: Security :: Policy # verify _ data=(flag) (63919.0) -
データを検証するかどうかを設定します。
データを検証するかどうかを設定します。
@param flag 真、または偽を指定します。 -
Gem
:: Security :: Policy # verify _ root=(flag) (63919.0) -
証明書チェーンのルートを検証するかどうかを設定します。
証明書チェーンのルートを検証するかどうかを設定します。
@param flag 真、または偽を指定します。 -
Gem
:: Security :: Policy # verify _ signer=(flag) (63919.0) -
署名者を検証するかどうかを設定します。
署名者を検証するかどうかを設定します。
@param flag 真、または偽を指定します。 -
OpenSSL
:: Buffering # write(str) -> Integer (63919.0) -
str を出力します。
str を出力します。
書き込んだデータの長さを返します。
IO#write と同様です。
@param str 出力する文字列 -
OpenSSL
:: Buffering # write _ nonblock(s) -> Integer (63919.0) -
文字列 s をノンブロッキングモードで書き込みます。
文字列 s をノンブロッキングモードで書き込みます。
成功した場合、書き込んだバイト数を返します。
1 バイトも書くことができず、ソケットの状態が変化するのを
待つ必要がある場合は例外を発生させます。
例外が発生した場合、内部のソケットが利用可能になってから
再びこのメソッドを呼んでください。
ただし内部バッファに書き込んでいないデータが残っている場合は、
まずバッファの内容をすべて出力してします。この時点で
ブロックする可能性があります。
基本的には IO#write_nonblock と同様です。しかし以下のような
違いもあります。
このメソッドはソケットが読み込み不可能(IO:... -
OpenSSL
:: Digest :: RIPEMD160 . digest(data) -> String (63919.0) -
data のダイジェストを RIPEMD160 で計算します。
data のダイジェストを RIPEMD160 で計算します。
@param data ダイジェストを計算する文字列 -
OpenSSL
:: Digest :: RIPEMD160 . hexdigest(data) -> String (63919.0) -
data のダイジェストを RIPEMD160 で計算し、16進文字列で返します。
data のダイジェストを RIPEMD160 で計算し、16進文字列で返します。
@param data ダイジェストを計算する文字列 -
Process
:: GID . # grant _ privilege(id) -> Integer (63919.0) -
現在のプロセスの実効グループ ID を id に変更します。成功したら id を返します。
現在のプロセスの実効グループ ID を id に変更します。成功したら id を返します。
実グループ ID は変更されないことが保証されます。
保存グループ ID が変更されないかもしれないので root 権限の完全放棄には使えません。
保存グループ ID が変化するかどうかは Process::GID.#re_exchangeable?
が true を返すかどうかで決まります。
* true の環境では、実グループ ID と異なる値を設定した場合、保存グループ ID は新しい実効グループ ID の値に設定されます。
* false の環境では保存グループ ID は変化しません。
... -
Process
:: UID . # grant _ privilege(id) -> Integer (63919.0) -
現在のプロセスの実効ユーザ ID を id に変更します。成功したら id を返します。
現在のプロセスの実効ユーザ ID を id に変更します。成功したら id を返します。
実ユーザ ID は変更されないことが保証されます。
保存ユーザ ID が変更されないかもしれないので root 権限の完全放棄には使えません。
保存ユーザ ID が変化するかどうかは Process::UID.#re_exchangeable?
が true を返すかどうかで決まります。
* true の環境では、実ユーザ ID と異なる値を設定した場合、保存ユーザ ID は新しい実効ユーザ ID の値に設定されます。
* false の環境では保存ユーザ ID は変化しません。
利用できるか... -
StringIO
# syswrite(obj) -> Integer (63919.0) -
自身に obj を書き込みます。StringIO#write と同じです。
自身に obj を書き込みます。StringIO#write と同じです。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。 -
StringIO
# write(*obj) -> Integer (63919.0) -
自身に obj を書き込みます。obj が文字列でなければ to_s による文字列化を試みます。 書き込まれた文字列の長さを返します。
自身に obj を書き込みます。obj が文字列でなければ to_s による文字列化を試みます。
書き込まれた文字列の長さを返します。
全ての出力メソッドは、最終的に「write」という名のメソッドを呼び出すので、
このメソッドを置き換えることで出力関数の挙動を変更することができます。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み可能でない時に発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge", 'r+')
a.write("aaa") ... -
StringIO
# write _ nonblock(obj) -> Integer (63919.0) -
自身に obj を書き込みます。StringIO#write と同じです。
自身に obj を書き込みます。StringIO#write と同じです。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。 -
URI
:: LDAP # attributes=(s) (63919.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。