10882件ヒット
[1-100件を表示]
(0.323秒)
ライブラリ
- ビルトイン (3581)
- abbrev (12)
- benchmark (12)
- bigdecimal (60)
-
bigdecimal
/ util (24) -
cgi
/ core (48) -
cgi
/ html (540) - csv (132)
- date (60)
- dbm (48)
- digest (60)
-
drb
/ extservm (12) - erb (8)
- fiddle (36)
- forwardable (48)
- gdbm (48)
- ipaddr (24)
-
irb
/ cmd / help (12) -
irb
/ context (60) -
irb
/ input-method (12) - json (168)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) - kconv (24)
- logger (36)
-
minitest
/ unit (4) - mkmf (168)
-
net
/ ftp (168) -
net
/ http (216) -
net
/ imap (348) -
net
/ pop (132) -
net
/ smtp (36) -
net
/ telnet (4) - open-uri (24)
- openssl (576)
- optparse (468)
- pathname (120)
- psych (180)
- rake (96)
-
rake
/ rdoctask (12) -
rdoc
/ code _ object (24) -
rdoc
/ markup (48) -
rdoc
/ parser / simple (12) -
rdoc
/ text (60) - resolv (132)
-
rexml
/ document (180) -
rubygems
/ command (36) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ digest / digest _ adapter (24) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ indexer (12) -
rubygems
/ installer (24) -
rubygems
/ package / tar _ input (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ remote _ fetcher (84) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (24) -
rubygems
/ spec _ fetcher (12) -
rubygems
/ specification (36) -
rubygems
/ user _ interaction (60) - scanf (108)
- sdbm (48)
- shell (60)
-
shell
/ command-processor (48) -
shell
/ filter (36) -
shell
/ system-command (24) - shellwords (24)
- socket (240)
- stringio (493)
- strscan (324)
- time (36)
- tracer (12)
- uri (72)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htgroup (12) -
webrick
/ httpauth / htpasswd (24) -
webrick
/ httpauth / userdb (24) -
webrick
/ httprequest (24) -
webrick
/ httputils (60) -
win32
/ registry (36) - win32ole (264)
-
yaml
/ dbm (48) - zlib (156)
クラス
-
ARGF
. class (192) - Addrinfo (48)
- Array (93)
- BasicObject (12)
- BasicSocket (48)
-
Benchmark
:: Tms (12) - BigDecimal (84)
- Bignum (6)
- CGI (36)
- CSV (72)
-
CSV
:: Table (36) - Complex (12)
- DBM (48)
-
DRb
:: ExtServManager (12) - Date (24)
- DateTime (60)
-
Digest
:: Base (60) - Dir (12)
- ERB (8)
-
Encoding
:: Converter (60) -
Encoding
:: InvalidByteSequenceError (36) -
Encoding
:: UndefinedConversionError (12) - Enumerator (24)
- Exception (44)
-
Fiddle
:: Function (12) -
Fiddle
:: Pointer (24) - File (16)
- Fixnum (6)
- Float (24)
- GDBM (48)
-
Gem
:: Command (36) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: DigestAdapter (24) -
Gem
:: GemPathSearcher (12) -
Gem
:: Indexer (12) -
Gem
:: Installer (24) -
Gem
:: Package :: TarInput (12) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: RemoteFetcher (84) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (24) -
Gem
:: SpecFetcher (12) -
Gem
:: Specification (36) -
Gem
:: StreamUI (48) - IO (227)
- IPAddr (24)
-
IRB
:: Context (60) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ReadlineInputMethod (12) - Integer (60)
-
JSON
:: State (48) - Logger (12)
-
Logger
:: Formatter (24) - MatchData (110)
- Method (24)
-
MiniTest
:: Unit (1) -
MiniTest
:: Unit :: TestCase (1) - Module (612)
-
Net
:: FTP (168) -
Net
:: HTTP (96) -
Net
:: HTTPResponse (24) -
Net
:: IMAP (12) -
Net
:: IMAP :: BodyTypeBasic (84) -
Net
:: IMAP :: BodyTypeMessage (84) -
Net
:: IMAP :: BodyTypeMultipart (48) -
Net
:: IMAP :: BodyTypeText (84) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: TaggedResponse (12) -
Net
:: IMAP :: UntaggedResponse (12) -
Net
:: POPMail (132) -
Net
:: SMTP (36) -
Net
:: Telnet (4) - NilClass (7)
- Object (189)
-
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: ASN1 :: ObjectId (60) -
OpenSSL
:: BN (12) -
OpenSSL
:: Cipher (12) -
OpenSSL
:: Config (48) -
OpenSSL
:: Engine (12) -
OpenSSL
:: Netscape :: SPKI (36) -
OpenSSL
:: OCSP :: Response (24) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKey :: DSA (12) -
OpenSSL
:: PKey :: EC (12) -
OpenSSL
:: PKey :: PKey (12) -
OpenSSL
:: PKey :: RSA (48) -
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: SSL :: SSLSocket (24) -
OpenSSL
:: X509 :: Attribute (24) -
OpenSSL
:: X509 :: CRL (12) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: Name (24) - OpenStruct (12)
- OptionParser (360)
-
OptionParser
:: ParseError (60) - Pathname (120)
- Proc (12)
-
Psych
:: Nodes :: Alias (12) -
Psych
:: Nodes :: Document (12) -
Psych
:: Nodes :: Mapping (24) -
Psych
:: Nodes :: Node (24) -
Psych
:: Nodes :: Scalar (36) -
Psych
:: Nodes :: Sequence (24) -
Psych
:: ScalarScanner (24) -
RDoc
:: CodeObject (24) -
RDoc
:: Markup (48) -
RDoc
:: Parser :: Simple (12) -
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: CData (24) -
REXML
:: Comment (12) -
REXML
:: DocType (24) -
REXML
:: Element (24) -
REXML
:: Entity (36) -
REXML
:: Text (12) -
Rake
:: FileList (36) -
Rake
:: RDocTask (12) -
Rake
:: TaskArguments (24) - Random (12)
- Range (90)
- Rational (36)
- Regexp (24)
- Resolv (48)
-
Resolv
:: DNS (36) -
Resolv
:: Hosts (48) -
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (82) - SDBM (48)
-
Scanf
:: FormatSpecifier (12) -
Scanf
:: FormatString (60) - Shell (60)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (36) -
Shell
:: SystemCommand (24) - Socket (48)
-
Socket
:: AncillaryData (12) - String (1400)
- StringIO (493)
- StringScanner (324)
- Struct (24)
- Symbol (185)
- Thread (56)
-
Thread
:: Backtrace :: Location (72) - Time (60)
- TracePoint (19)
- Tracer (12)
- UDPSocket (48)
- UNIXSocket (36)
-
URI
:: Generic (24) -
URI
:: MailTo (48) - UnboundMethod (36)
-
WEBrick
:: Cookie (84) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htgroup (12) -
WEBrick
:: HTTPAuth :: Htpasswd (24) -
WEBrick
:: HTTPRequest (24) -
WEBrick
:: HTTPUtils :: FormData (60) -
WIN32OLE
_ METHOD (60) -
WIN32OLE
_ PARAM (48) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (48) -
WIN32OLE
_ VARIABLE (60) -
WIN32OLE
_ VARIANT (24) -
Win32
:: Registry (36) -
YAML
:: DBM (48) -
Zlib
:: Deflate (60) -
Zlib
:: GzipReader (48) -
Zlib
:: Inflate (36) -
Zlib
:: ZStream (12)
モジュール
-
CGI
:: HtmlExtension (540) -
CGI
:: QueryExtension (12) - Forwardable (24)
-
Gem
:: UserInteraction (12) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (180)
-
MiniTest
:: Assertions (2) -
Net
:: HTTPHeader (96) -
OpenSSL
:: Buffering (84) -
OpenSSL
:: SSL :: SocketForwarder (12) -
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (48) -
RDoc
:: Text (60) -
REXML
:: Namespace (24) - SingleForwardable (24)
-
WEBrick
:: HTTPAuth :: UserDB (24)
キーワード
- % (26)
- * (36)
- + (12)
- << (36)
- == (12)
- === (12)
- =~ (7)
- [] (276)
- []= (120)
-
_ _ id _ _ (12) -
_ dump (36) - abbrev (12)
- abort (12)
-
absolute
_ path (24) -
accept
_ charset (12) -
add
_ element (12) -
add
_ html (12) -
add
_ special (12) -
add
_ value (12) -
add
_ word _ pair (12) - addr (12)
- address (12)
- alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
alias
_ method (12) - all (36)
- anchor (48)
-
ap
_ name (12) -
ap
_ name= (12) -
arg
_ config (12) - ask (24)
- attr (48)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) -
attribute
_ of (12) - autoload (12)
- autoload? (12)
- backtrace (12)
- base (12)
-
base
_ label (24) - basename (18)
-
basic
_ auth (12) - bind (12)
- binread (12)
- binwrite (12)
- byteindex (3)
- byterindex (3)
- bytes (50)
- byteslice (12)
- bytesplice (5)
-
ca
_ file (24) -
ca
_ path (24) -
cache
_ dir (12) - call (12)
- capitalize (24)
- capitalize! (12)
- caption (24)
- captures (12)
- casecmp (24)
- casecmp? (18)
-
cc
_ command (12) - center (12)
- challenge (12)
- charpos (12)
- chars (38)
- check (12)
-
check
_ until (12) - checkbox (24)
-
checkbox
_ group (24) - chr (36)
- class (12)
-
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - clear (12)
- clone (12)
-
close
_ read (12) - codepoints (31)
- coerce (12)
-
col
_ sep (12) - command (6)
- comment= (12)
- concat (33)
- connect (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - content (12)
-
content
_ id (36) - count (12)
- cover? (19)
-
cpp
_ command (12) -
create
_ ext _ from _ string (12) -
create
_ extension (24) -
create
_ header (12) -
create
_ tmpsrc (12) - crypt (12)
- data (12)
-
datetime
_ format (24) - deconstruct (2)
- decrypt (12)
-
default
_ argv (12) -
defaults
_ str (12) -
define
_ method (24) -
define
_ singleton _ method (24) - deflate (12)
- delegate (24)
- delete (36)
- delete! (12)
-
delete
_ passwd (12) -
deprecate
_ constant (12) - description (36)
-
destination
_ encoding _ name (24) - digest (24)
- digest! (12)
- dir (24)
-
dir
_ config (12) -
dir
_ stack (6) - dirname (18)
- dirs (6)
- disasm (12)
- disassemble (12)
- domain (12)
- domain= (12)
- downcase (24)
- downcase! (12)
- download (12)
-
dsa
_ sign _ asn1 (12) -
dummy
_ makefile (12) - dup (12)
- each (24)
-
each
_ byte (48) -
each
_ char (48) -
each
_ codepoint (48) -
each
_ grapheme _ cluster (16) -
each
_ key (12) -
each
_ line (48) -
each
_ resource (12) - echo (18)
-
enable
_ config (24) - encoding (36)
- entity (12)
- environment (12)
- eql? (12)
-
error
_ bytes (12) - escape (12)
-
eval
_ script (7) -
event
_ interface (12) -
exception
_ details (1) - execute (12)
- exist? (12)
- ext (12)
- extname (12)
- fetch (48)
-
fetch
_ path (12) -
file
_ field (24) - filename (12)
- filename= (12)
-
find
_ executable (12) - finish (24)
- flush (12)
- form (48)
- format (12)
-
formatted
_ program _ filename (12) - freeze (12)
- ftype (30)
-
gem
_ signature (12) -
get
_ fields (12) -
get
_ file _ uri _ path (12) -
get
_ line (12) -
get
_ one _ gem _ name (12) -
get
_ one _ optional _ argument (12) -
get
_ passwd (36) -
get
_ path (12) -
get
_ value (12) - getaddress (24)
- getaddresses (24)
- getbyte (12)
- getc (24)
- getname (24)
- getnameinfo (12)
- getnames (24)
- getresource (12)
- getresources (12)
- gets (99)
- getsockopt (12)
-
grapheme
_ clusters (16) - gsub (48)
- gsub! (48)
- hash (24)
- header (24)
- headers (12)
- help (12)
- helpstring (12)
- hex (12)
- hexdigest (24)
- hexdigest! (12)
- hidden (24)
- hostname (12)
- html (24)
- httpdate (12)
- id2name (12)
- img (24)
- indent= (12)
- index (24)
- inflate (12)
-
inplace
_ mode (12) -
insert
_ output (12) - inspect (127)
-
instance
_ delegate (12) -
instance
_ method (12) -
ip
_ address (12) -
ip
_ unpack (12) -
irb
_ name (12) -
irb
_ name= (12) - iso8601 (24)
- jisx0301 (12)
- join (18)
- kconv (12)
- key (48)
- label (24)
-
last
_ match _ tried (6) -
last
_ response (12) -
last
_ response _ code (12) -
last
_ spec (6) -
last
_ spec _ tried (6) - lastresp (12)
-
latest
_ cache _ file (12) - libpathflag (12)
-
library
_ name (12) - line (12)
- lines (38)
-
link
_ command (12) - list (24)
- ljust (12)
- ln (12)
-
local
_ host (12) -
local
_ port (12) -
long
_ name (12) - ls (24)
- mail (36)
-
make
_ passwd (12) - markup (12)
- match (42)
- match? (30)
-
matched
_ count (6) -
matched
_ string (6) - matchedsize (12)
-
matching
_ files (12) - mdtm (12)
-
media
_ subtype (48) -
media
_ type (48) - members (12)
- method (12)
-
method
_ defined? (12) - mkdir (12)
-
module
_ function (24) -
mu
_ pp (1) -
multipart
_ form (48) - name (129)
- name= (22)
- namespace (12)
- next (12)
- next! (12)
-
normalize
_ comment (12) -
normalize
_ uri (12) - normalized (12)
- notify (12)
-
object
_ nl= (12) - oid (24)
-
ole
_ type (24) -
ole
_ type _ detail (24) - on (144)
- opaque (12)
- open (12)
-
open
_ uri _ or _ path (12) - ord (24)
- order (48)
- order! (48)
-
original
_ name (12) - pack (21)
- param (48)
-
parent
_ file _ name (12) -
parent
_ name (12) - parse (24)
- parse! (24)
-
parse
_ csv (12) -
parse
_ time (12) - partition (12)
-
password
_ field (24) - path (92)
- path= (12)
- pathmap (12)
-
pathmap
_ explode (12) -
pathmap
_ replace (12) - peek (12)
- peep (12)
- peeraddr (12)
- permute (24)
- permute! (24)
- pointer (12)
- pointer= (12)
- pop (36)
- pos (12)
- pos= (24)
-
post
_ match (12) -
pre
_ match (12) - pread (8)
- prefix (12)
- prepend (21)
- print (36)
-
print
_ dependencies (12) - printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ decrypt (12) -
private
_ encrypt (12) -
private
_ method _ defined? (12) -
program
_ name (12) - protected (36)
-
protected
_ method _ defined? (12) -
proxy
_ address (12) -
proxy
_ basic _ auth (12) -
proxy
_ pass (12) - proxyaddr (12)
- prune (6)
-
psych
_ to _ yaml (12) - public (36)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ decrypt (12) -
public
_ encrypt (12) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ method _ defined? (12) - puke (1)
- putback (24)
- putc (12)
- puts (12)
-
query
_ string= (12) - quote (12)
-
quote
_ char (12) -
radio
_ group (24) -
rake
_ extension (12) -
raw
_ data (24) -
re
_ string (6) - read (144)
-
read
_ body (24) -
read
_ nonblock (48) -
readagain
_ bytes (12) - readbyte (12)
- readchar (48)
- readline (120)
- readlines (72)
- readlink (18)
- readpartial (84)
- reason (12)
-
record
_ separator (6) - recv (12)
-
recv
_ nonblock (12) - recvfrom (24)
-
recvfrom
_ nonblock (24) - recvmsg (12)
-
recvmsg
_ nonblock (12) -
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ method (12) -
remove
_ private _ comments (12) - replacement (12)
- replacement= (12)
-
require
_ path (12) - reset (36)
-
result
_ with _ hash (8) -
return
_ format (12) -
return
_ type _ detail (12) - rfc3339 (12)
- rindex (12)
- rjust (12)
- rpartition (12)
- run (1)
-
sanitize
_ string (12) - scan (36)
-
scan
_ full (12) -
scan
_ until (12) - scanf (36)
-
scrolling
_ list (24) -
search
_ full (12) - select (36)
- send (36)
-
send
_ mail (12) - sendmail (12)
-
set
_ backtrace (24) -
set
_ dictionary (24) -
set
_ encoding (72) - shebang (12)
- shellescape (12)
- shelljoin (12)
- shift (12)
-
short
_ name (12) - sign (12)
-
signature
_ algorithm (12) -
single
_ delegate (12) -
singleton
_ class (12) -
singleton
_ method (12) - skip (12)
-
skip
_ until (12) - slice (84)
- sn (12)
-
source
_ location (36) - space (6)
- space= (12)
-
space
_ before= (12) -
spec
_ count (6) -
spec
_ path (12) - split (49)
- squeeze (12)
- squeeze! (12)
-
start
_ with? (18) - status (48)
-
status
_ string (12) - step (21)
- store (36)
- strftime (24)
- string= (24)
-
string
_ left (6) -
strip
_ hashes (12) -
strip
_ stars (12) - sub (60)
- sub! (36)
- submit (24)
- subtype (48)
- succ (12)
- succ! (12)
-
summary
_ indent (12) - swapcase (24)
- swapcase! (12)
- sync (12)
- sysread (60)
- syssign (12)
- tag (36)
-
tag
_ directives (12) - tainted? (6)
- terminate (12)
- text (12)
-
text
_ field (24) - textarea (24)
- then (7)
-
thread
_ variable? (12) - to (12)
-
to
_ a (24) -
to
_ binary (10) -
to
_ csv (12) -
to
_ d (12) -
to
_ der (24) -
to
_ digits (12) -
to
_ f (12) -
to
_ i (12) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ mailtext (12) -
to
_ path (20) -
to
_ pem (12) -
to
_ r (12) -
to
_ rfc822text (12) -
to
_ s (282) -
to
_ string (12) -
to
_ yaml (24) - tokenize (12)
- tolocale (12)
- top (12)
- tr (12)
- tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - truncate (12)
-
try
_ file (12) -
undef
_ method (12) - unescape (12)
- ungetbyte (12)
- ungetc (24)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) -
unix
_ path (12) - unnormalized (12)
- unpack (12)
- unpack1 (9)
- unscan (12)
- upcase (24)
- upcase! (12)
- update (12)
- upto (12)
- uri (12)
- value (108)
- value= (12)
-
values
_ at (48) -
variable
_ kind (12) - verify (12)
- version (12)
- waitfor (4)
-
with
_ config (24) -
with
_ object (24) - write (24)
-
write
_ nonblock (12) - xmlschema (24)
- yaml (12)
-
yield
_ self (8) -
zipped
_ stream (12)
検索結果
先頭5件
-
CGI
:: HtmlExtension # a(href = "") -> String (18263.0) -
a 要素を生成します。
...
a 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param href 文字列を指定します。属性をハッシュで指定することもできます。
例:
a("http://www.example.com") { "Example" }
# => "<A HRE......F=\"http://www.example.com\">Example</A>"
a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" }
# => "<A HREF=\"http://www.example.com\" TARGET=\"_top\">Example</A>"... -
CGI
:: HtmlExtension # a(href = "") { . . . } -> String (18263.0) -
a 要素を生成します。
...
a 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param href 文字列を指定します。属性をハッシュで指定することもできます。
例:
a("http://www.example.com") { "Example" }
# => "<A HRE......F=\"http://www.example.com\">Example</A>"
a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" }
# => "<A HREF=\"http://www.example.com\" TARGET=\"_top\">Example</A>"... -
String
# unpack(template) -> Array (15641.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...
Array#pack で生成された文字列を
テンプレート文字列 template にしたがってアンパックし、
それらの要素を含む配列を返します。
@param template pack テンプレート文字列
@return オブジェクトの配列
以下にあげるもの......は、Array#pack、String#unpack
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さの意味はテ......整数サイズ非依存 (ネットワークプロトコルなどに適切)
//emlist{
n: big endian unsigned 16bit
N: big endian unsigned 32bit
v: little endian unsigned 16bit
V: little endian unsigned 32bit
//}
: エンディアン依存、整数サイズ依存 (C の構造体などに適......は、Array#pack、String#unpack、String#unpack1
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さ... -
String
# partition(sep) -> [String , String , String] (15434.0) -
セパレータ sep が最初に登場する部分で self を 3 つに分割し、 [最初のセパレータより前の部分, セパレータ, それ以降の部分] の 3 要素の配列を返します。
...。
@param sep セパレータを表す文字列か正規表現を指定します。
//emlist[例][ruby]{
p "axaxa".partition("x") # => ["a", "x", "axa"]
p "aaaaa".partition("x") # => ["aaaaa", "", ""]
p "aaaaa".partition("") # => ["", "", "aaaaa"]
//}
@see String#rpartition, String#spl... -
String
# rpartition(sep) -> [String , String , String] (15434.0) -
セパレータ sep が最後に登場する部分で self を 3 つに分割し、 [最後のセパレータより前の部分, セパレータ, それ以降の部分] の 3 要素の配列を返します。
...と第 2 要素が空文字列になります。
@param sep セパレータを表す文字列か正規表現を指定します。
//emlist[例][ruby]{
p "axaxa".rpartition("x") # => ["axa", "x", "a"]
p "aaaaa".rpartition("x") # => ["", "", "aaaaa"]
//}
@see String#partition, String#split... -
String
# scan(pattern) -> [String] | [[String]] (15316.0) -
self に対して pattern を繰り返しマッチし、 マッチした部分文字列の配列を返します。
...elf に対して pattern を繰り返しマッチし、
マッチした部分文字列の配列を返します。
pattern が正規表現で括弧を含む場合は、
括弧で括られたパターンにマッチした部分文字列の配列の配列を返します。
@param pattern 探索する......obar".scan(/../) # => ["fo", "ob", "ar"]
p "foobar".scan("o") # => ["o", "o"]
p "foobarbazfoobarbaz".scan(/ba./) # => ["bar", "baz", "bar", "baz"]
p "foobar".scan(/(.)/) # => [["f"], ["o"], ["o"], ["b"], ["a"], ["r"]]
p "foobarbazfoobarbaz".scan(/(ba)(.)/) # => [["ba"......, "r"], ["ba", "z"], ["ba", "r"], ["ba", "z"]]
//}... -
Logger
:: Formatter # datetime _ format -> String (15308.0) -
ログの日時フォーマットを取得します。
...ログの日時フォーマットを取得します。
@see Time#strftime... -
String
# pathmap _ replace(patterns) { . . . } -> String (15308.0) -
与えられたパスを前もって置き換えます。
...与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。... -
String
# match(regexp , pos = 0) -> MatchData | nil (15307.0) -
regexp.match(self, pos) と同じです。 regexp が文字列の場合は、正規表現にコンパイルします。 詳しくは Regexp#match を参照してください。
...regexp.match(self, pos) と同じです。
regexp が文字列の場合は、正規表現にコンパイルします。
詳しくは Regexp#match を参照してください。
//emlist[例: regexp のみの場合][ruby]{
'hello'.match('(.)\1') # => #<MatchData "ll" 1:"l">
'hello'.match('(.)\......0] # => "ll"
'hello'.match(/(.)\1/)[0] # => "ll"
'hello'.match('xx') # => nil
//}
//emlist[例: regexp, pos を指定した場合][ruby]{
'hoge hige hege bar'.match('h.ge', 0) # => #<MatchData "hoge">
'hoge hige hege bar'.match('h.ge', 1) # => #<MatchData "hige">
//}
//emlist[......例: ブロックを指定した場合][ruby]{
'hello'.match('(.)\1'){|e|"match #{$1}"} # => "match l"
'hello'.match('xx'){|e|"match #{$1}"} # マッチしないためブロックは実行されない
//}
@see Regexp#match, Symbol#match...