種類
ライブラリ
- English (110)
- ビルトイン (1745)
- abbrev (22)
- benchmark (33)
-
cgi
/ core (55) -
cgi
/ html (275) -
cgi
/ util (11) - csv (66)
- date (176)
- dbm (11)
- etc (55)
- fiddle (11)
- forwardable (44)
- gdbm (11)
- ipaddr (11)
-
irb
/ context (33) - json (374)
-
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / rational (11) - logger (56)
- matrix (22)
-
minitest
/ unit (1) - mkmf (55)
-
net
/ ftp (20) -
net
/ http (33) -
net
/ imap (132) - nkf (11)
- objspace (11)
- open-uri (11)
- open3 (44)
- openssl (649)
- optparse (33)
- pathname (121)
- pstore (22)
- rake (165)
-
rake
/ packagetask (11) -
rake
/ rdoctask (11) -
rake
/ testtask (11) - rdoc (11)
-
rdoc
/ context (11) -
rdoc
/ generator / darkfish (11) -
rdoc
/ generator / json _ index (11) -
rdoc
/ generator / ri (11) -
rdoc
/ markup (11) -
rdoc
/ parser / simple (11) -
rdoc
/ top _ level (11) - readline (44)
- resolv (11)
-
rexml
/ document (297) -
rinda
/ rinda (11) -
ripper
/ lexer (32) -
rubygems
/ commands / help _ command (11) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ config _ file (11) -
rubygems
/ defaults (22) -
rubygems
/ format (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ installer (22) -
rubygems
/ old _ format (11) -
rubygems
/ package / tar _ header (22) -
rubygems
/ platform (66) -
rubygems
/ remote _ fetcher (33) -
rubygems
/ security (11) -
rubygems
/ server (11) -
rubygems
/ source _ index (22) -
rubygems
/ source _ info _ cache (66) -
rubygems
/ specification (407) -
rubygems
/ user _ interaction (33) -
rubygems
/ validator (11) - scanf (132)
- sdbm (11)
- shell (36)
-
shell
/ command-processor (24) -
shell
/ filter (12) - socket (121)
- stringio (116)
- strscan (99)
-
syslog
/ logger (11) - tempfile (11)
- time (11)
- uri (22)
-
webrick
/ accesslog (77) -
webrick
/ httpauth / authenticator (44) -
webrick
/ httprequest (22) -
webrick
/ httpresponse (11) -
webrick
/ httpstatus (11) -
webrick
/ httputils (77) -
webrick
/ log (22) -
win32
/ resolv (11) - win32ole (22)
-
yaml
/ dbm (22) - zlib (165)
クラス
-
ARGF
. class (11) - Addrinfo (11)
- Array (30)
- BasicSocket (22)
-
Benchmark
:: Tms (22) - Binding (6)
- CGI (11)
-
CGI
:: Cookie (11) - CSV (66)
- Class (11)
- DBM (11)
- Data (8)
- Date (132)
- DateTime (66)
- Dir (91)
-
Encoding
:: Converter (55) -
Encoding
:: InvalidByteSequenceError (11) -
Encoding
:: UndefinedConversionError (11) - Enumerator (22)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Chain (6) - File (99)
-
File
:: Stat (22) - Float (22)
- GDBM (11)
-
Gem
:: Commands :: HelpCommand (11) -
Gem
:: Commands :: LockCommand (11) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: ConfigFile (11) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: Installer (22) -
Gem
:: OldFormat (11) -
Gem
:: Package :: TarHeader (22) -
Gem
:: Platform (66) -
Gem
:: RemoteFetcher (33) -
Gem
:: Security :: Policy (11) -
Gem
:: Server (11) -
Gem
:: SourceIndex (22) -
Gem
:: SourceInfoCache (66) -
Gem
:: Specification (407) -
Gem
:: StreamUI (33) -
Gem
:: Validator (11) - IO (126)
- IPAddr (11)
-
IRB
:: Context (22) -
JSON
:: State (110) - LoadError (11)
- Logger (22)
-
Logger
:: Application (1) -
Logger
:: Formatter (33) - MatchData (143)
- Matrix (22)
- Method (11)
-
MiniTest
:: Unit (1) - Module (162)
-
Net
:: FTP (11) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (22) -
Net
:: HTTPGenericRequest (11) -
Net
:: IMAP (33) -
Net
:: IMAP :: Address (11) -
Net
:: IMAP :: ContinuationRequest (11) -
Net
:: IMAP :: Envelope (11) -
Net
:: IMAP :: FetchData (11) -
Net
:: IMAP :: MailboxList (11) -
Net
:: IMAP :: StatusData (22) -
Net
:: IMAP :: TaggedResponse (11) -
Net
:: IMAP :: UntaggedResponse (11) - Object (35)
-
OpenSSL
:: ASN1 :: ASN1Data (11) -
OpenSSL
:: Cipher (11) -
OpenSSL
:: Digest (11) -
OpenSSL
:: Digest :: DSS (22) -
OpenSSL
:: Digest :: DSS1 (22) -
OpenSSL
:: Digest :: MD2 (22) -
OpenSSL
:: Digest :: MD4 (22) -
OpenSSL
:: Digest :: MD5 (22) -
OpenSSL
:: Digest :: MDC2 (22) -
OpenSSL
:: Digest :: RIPEMD160 (22) -
OpenSSL
:: Digest :: SHA (22) -
OpenSSL
:: Digest :: SHA1 (22) -
OpenSSL
:: Digest :: SHA224 (22) -
OpenSSL
:: Digest :: SHA256 (22) -
OpenSSL
:: Digest :: SHA384 (22) -
OpenSSL
:: Digest :: SHA512 (22) -
OpenSSL
:: HMAC (22) -
OpenSSL
:: OCSP :: Response (22) -
OpenSSL
:: PKCS7 (33) -
OpenSSL
:: PKey :: DSA (11) -
OpenSSL
:: PKey :: EC (11) -
OpenSSL
:: PKey :: PKey (11) -
OpenSSL
:: PKey :: RSA (22) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: SSL :: SSLSocket (11) -
OpenSSL
:: X509 :: Attribute (22) -
OpenSSL
:: X509 :: CRL (11) -
OpenSSL
:: X509 :: Certificate (77) -
OpenSSL
:: X509 :: ExtensionFactory (33) -
OpenSSL
:: X509 :: Name (11) -
OpenSSL
:: X509 :: Request (11) - OptionParser (33)
- PStore (22)
- Pathname (121)
- Proc (11)
-
Process
:: Status (22) -
RDoc
:: Context (11) -
RDoc
:: Generator :: Darkfish (11) -
RDoc
:: Generator :: JsonIndex (11) -
RDoc
:: Generator :: RI (11) -
RDoc
:: Markup (11) -
RDoc
:: Options (55) -
RDoc
:: Parser :: Simple (11) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (22) -
REXML
:: Attribute (66) -
REXML
:: Attributes (33) -
REXML
:: CData (22) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Element (33) -
REXML
:: Entity (22) -
REXML
:: NotationDecl (44) -
Rake
:: Application (33) -
Rake
:: FileList (55) -
Rake
:: InvocationChain (11) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) -
Rake
:: PackageTask (11) -
Rake
:: RDocTask (11) -
Rake
:: Task (11) -
Rake
:: TestTask (11) - Range (24)
- Rational (33)
- Regexp (33)
-
Resolv
:: DNS :: Resource :: TXT (11) - Ripper (18)
-
Ripper
:: Lexer (14) -
RubyVM
:: InstructionSequence (40) - SDBM (11)
-
Scanf
:: FormatSpecifier (12) -
Scanf
:: FormatString (78) - Shell (36)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (12) - Socket (22)
-
Socket
:: AncillaryData (11) -
Socket
:: Option (33) - String (443)
- StringIO (116)
- StringScanner (99)
- Symbol (19)
- SyntaxError (2)
-
Syslog
:: Logger :: Formatter (11) - Tempfile (11)
- Thread (11)
-
Thread
:: Backtrace :: Location (66) - Time (22)
- TracePoint (11)
- UDPSocket (11)
- UNIXSocket (11)
-
URI
:: Generic (11) -
URI
:: LDAP (11) - UnboundMethod (11)
-
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPUtils :: FormData (66) -
WEBrick
:: Log (22) - WIN32OLE (11)
-
WIN32OLE
_ TYPELIB (11) -
Win32
:: Resolv (11) -
YAML
:: DBM (22) -
Zlib
:: Deflate (66) -
Zlib
:: GzipFile (11) -
Zlib
:: Inflate (66)
モジュール
- Abbrev (11)
- Benchmark (11)
-
CGI
:: HtmlExtension (275) -
CGI
:: QueryExtension (55) - Etc (55)
- Fiddle (11)
- Forwardable (22)
- Gem (22)
-
Gem
:: InstallUpdateOptions (11) - JSON (77)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (331)
- NKF (11)
- ObjectSpace (11)
- Open3 (44)
-
OpenSSL
:: X509 (11) -
OpenURI
:: Meta (11) - RDoc (11)
- SingleForwardable (22)
-
WEBrick
:: AccessLog (77) -
WEBrick
:: HTTPAuth :: Authenticator (44) -
WEBrick
:: HTTPStatus (11) -
WEBrick
:: HTTPUtils (11) - Zlib (22)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (44) - main (23)
キーワード
-
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ MATCH (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ RS (11) - % (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (22)
-
AGENT
_ LOG _ FORMAT (11) -
ATTR
_ MODIFIERS (11) -
BUILD
_ RUBY _ PLATFORM (11) -
CLF
_ TIME _ FORMAT (11) -
COMBINED
_ LOG _ FORMAT (11) -
COMMON
_ LOG _ FORMAT (11) - CURRENT (11)
- Context (11)
-
DEFAULT
_ PRIVATE _ DIR (11) - DEPRECATED (11)
- DESCRIPTION (11)
-
DOC
_ TEMPLATE (11) - Default (11)
-
EMPTY
_ MARSHAL _ DATA (11) - Enumerator (11)
- Extend (22)
- FORMAT (22)
- Float (11)
- Format (11)
- FormatString (6)
-
GENERATOR
_ DIR (11) - IN6FORMAT (11)
- Marshal フォーマット (11)
- MatchData (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
NKF
_ RELEASE _ DATE (11) - NoDelegateMethods (6)
-
OBJECT
_ TYPE _ TEMPLATE (11) -
PACK
_ FORMAT (11) - PLATFORMS (11)
- Pretty (11)
-
REFERER
_ LOG _ FORMAT (11) - REGEX (6)
- RUBY (11)
-
RUBY
_ PLATFORM (11) -
RUBY
_ RELEASE _ DATE (11) - RequestField (11)
- ResponseField (11)
- ResponseInfoField (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
-
SC
_ 2 _ PBS _ LOCATE (11) -
SC
_ ATEXIT _ MAX (11) -
SC
_ THREAD _ ATTR _ STACKADDR (11) -
SC
_ THREAD _ ATTR _ STACKSIZE (11) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (11) -
SEARCH
_ INDEX _ FILE (11) - SPECIFIERS (6)
- Template (11)
- Transitive (11)
-
UNPACK
_ FORMAT (11) - [] (88)
-
_ dump (11) - abbrev (22)
-
absolute
_ path (33) -
add
_ element (11) -
add
_ special (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) -
allocation
_ sourcefile (11) - appname (1)
-
array
_ nl (11) -
asciicompat
_ encoding (22) - asctime (11)
- attr (66)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) -
attribute
_ of (11) - attributes (11)
- autoload (22)
- autorequire (11)
-
base
_ label (11) - bindir (11)
- binread (22)
- binwrite (22)
- byteindex (2)
- byterindex (2)
- bytes (7)
-
ca
_ path (22) - call (22)
- caller (33)
- capture2 (11)
- capture2e (11)
- capture3 (11)
- captures (11)
- chars (7)
- checkbox (11)
-
checkbox
_ group (11) - children (14)
- codepoints (7)
- concat (30)
-
const
_ source _ location (5) - cpu (11)
-
create
_ body (11) -
create
_ ext _ from _ string (11) -
create
_ extension (22) -
create
_ guid (11) -
create
_ header (11) -
create
_ id (11) -
create
_ tmpsrc (11) - ctime (11)
- data (44)
- date (11)
-
datetime
_ format (22) -
default
_ exec _ format (11) -
default
_ executable (11) -
default
_ path (11) -
default
_ record _ separator (6) -
default
_ record _ separator= (6) - define (4)
- deflate (33)
- delegate (22)
-
delete
_ at (11) -
deprecate
_ constant (9) - description (11)
-
destination
_ encoding _ name (22) - dev (11)
- digest (165)
-
dsa
_ sign _ asn1 (11) - each (22)
-
each
_ byte (22) -
each
_ char (22) -
each
_ codepoint (22) -
each
_ grapheme _ cluster (7) -
each
_ line (22) -
element
_ name (11) - email (11)
- entries (22)
- escape (11)
-
escape
_ path (11) -
exec
_ format (11) - executable (11)
- executables (11)
- extensions (11)
- extname (11)
-
extra
_ rdoc _ files (11) -
fast
_ generate (11) -
fast
_ unparse (11) -
fetch
_ path (11) -
file
_ field (11) -
file
_ name (11) -
file
_ relative _ name (11) - filename (11)
- filename= (11)
- files (11)
-
find
_ executable (11) - finish (22)
- flush (11)
- form (44)
- format (33)
-
format
_ date (11) -
format
_ datetime (11) -
formatted
_ program _ filename (11) - formatter (11)
- ftype (22)
-
full
_ gem _ path (11) -
full
_ name (11) -
gateway
_ interface (11) -
gem
_ path (22) -
gem
_ signature (11) - generate (33)
-
generate
_ line (11) - get (11)
-
get
_ file _ uri _ path (11) -
get
_ hosts _ path (11) -
get
_ path (11) - glob (22)
- gsub (88)
- gsub! (55)
- hexdigest (154)
- hidden (11)
- homepage (11)
- html (22)
- httpdate (22)
-
image
_ format (11) - img (11)
- indent (11)
- indent= (11)
- index (11)
-
index
_ signature (11) - inflate (33)
- inspect (80)
-
install
_ update _ defaults _ str (11) -
installation
_ path (11) - instance (22)
-
instance
_ delegate (11) - investigation (11)
-
irb
_ path (11) - isatty (11)
- iso8601 (22)
- jisx0301 (22)
-
json
_ creatable? (11) -
json
_ create (11) - label (11)
-
last
_ match (22) -
last
_ match _ tried (6) -
last
_ spec (6) -
last
_ spec _ tried (6) -
latest
_ cache _ file (11) -
latest
_ system _ cache _ file (22) -
latest
_ user _ cache _ file (22) - lex (14)
-
lib
_ dirs _ for (11) -
lib
_ files (11) - libpathflag (11)
- lines (7)
-
link
_ command (11) -
literal
_ concat _ string (11) -
load
_ from _ binary _ extra _ data (9) -
loaded
_ from (11) - location (1)
- mailbox (11)
-
mark
_ version (11) - match (39)
- match? (27)
- matched (11)
- matched? (11)
-
matched
_ count (6) -
matched
_ size (11) -
matched
_ string (6) - matchedsize (11)
- matches? (11)
-
matching
_ files (11) -
multipart
_ form (44) - name (44)
- name= (11)
- names (11)
- namespace (11)
- namespaces (11)
- ndata (11)
- negotiate (11)
- new (72)
- normalize (11)
-
normalize
_ yaml _ input (11) -
object
_ nl (11) -
object
_ nl= (11) - oid (11)
- on (33)
-
open
_ uri _ or _ path (11) -
original
_ dir (11) -
original
_ name (11) -
original
_ platform (11) - os (11)
- pack (19)
- pack テンプレート文字列 (11)
-
pack
_ sockaddr _ un (11) -
package
_ dir _ path (11) - parse (7)
-
parse
_ string (11) -
password
_ field (11) - path (224)
- path= (11)
-
path
_ info (22) -
path
_ translated (11) - pathmap (22)
-
pathmap
_ explode (11) -
pathmap
_ partial (11) -
pathmap
_ replace (11) - pathname (9)
- pattern (11)
- pipeline (11)
- platform (11)
- pop (11)
-
post
_ match (22) -
pre
_ match (22) - prefix (11)
- prefixes (11)
-
pretty
_ generate (11) -
pretty
_ unparse (11) - printf (11)
- private (46)
-
private
_ class _ method (15) -
private
_ constant (11) -
private
_ decrypt (11) -
private
_ encrypt (11) -
private
_ method _ defined? (11) - prune (6)
- public (11)
-
radio
_ group (11) - rakefile (11)
-
raw
_ data (33) -
rb
_ eval _ string _ protect (11) -
rb
_ eval _ string _ wrap (11) -
rb
_ f _ string (11) - rdoc (11)
-
re
_ string (6) - read (44)
- readlines (44)
- readlink (29)
- realdirpath (11)
- realm (11)
- realpath (11)
-
reason
_ phrase (11) -
record
_ separator (6) -
recvfrom
_ nonblock (11) - recvmsg (11)
-
recvmsg
_ nonblock (11) -
remove
_ const (11) -
remove
_ leading _ dot _ dir (11) -
remove
_ private _ comments (11) -
require
_ path (11) -
require
_ paths (11) - reset (11)
-
return
_ format (11) -
rfc1123
_ date (11) - rfc2822 (11)
- rfc3339 (22)
- rfc822 (11)
- rindex (11)
- route (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ security (11) -
rubygems
_ version (11) - scan (22)
- scanf (36)
-
scrolling
_ list (11) - select (22)
-
set
_ dictionary (22) - shift (11)
- sign (11)
-
signature
_ algorithm (33) -
signing
_ key (11) -
single
_ delegate (11) - slice (11)
-
sockaddr
_ un (11) -
source
_ location (39) - space (17)
- space= (11)
-
space
_ before (11) -
space
_ before= (11) -
spec
_ count (6) -
spec
_ path (11) - split (29)
- sprintf (11)
- sprintf フォーマット (11)
- state (11)
-
static
_ path (11) - status (55)
-
status
_ line (11) -
status
_ string (11) - step (12)
- strftime (22)
- strhash (11)
- string (11)
-
string
_ left (6) - sub (88)
- sub! (44)
- submit (11)
- summary (11)
- sync (11)
- syssign (11)
- system (11)
- template (22)
-
template
_ dir (11) - terminate (11)
-
test
_ file (11) -
test
_ files (11) -
test
_ suite _ file (11) - text (11)
-
text
_ field (11) - textarea (11)
- then (6)
-
time
_ format (11) -
time
_ format= (11) -
to
_ a (11) -
to
_ binary (9) -
to
_ der (33) -
to
_ f (11) -
to
_ json (132) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ path (35) -
to
_ pem (11) -
to
_ r (11) -
to
_ ruby (11) -
to
_ s (206) -
to
_ string (11) -
to
_ text (11) -
tokadd
_ string (11) - tr (11)
- tr! (11)
-
tr
_ s (11) -
tr
_ s! (11) - truncate (11)
-
trusted
_ cert _ path (11) -
try
_ file (11) - union (11)
-
unix
_ path (11) -
unmatched
_ alias _ lists (11) - unpack (22)
- unpack1 (8)
- unparse (11)
- update (11)
- value (22)
-
values
_ at (55) - verify (11)
- version (11)
-
with
_ object (22) - write (33)
-
write
_ smime (11) - xmlschema (22)
- xpath (22)
- yaml (11)
-
yield
_ self (7) - zone (11)
- 正規表現 (11)
検索結果
先頭5件
-
String
# pathmap _ replace(patterns) { . . . } -> String (27301.0) -
与えられたパスを前もって置き換えます。
...与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。... -
String
# match(regexp , pos = 0) -> MatchData | nil (27300.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... -
String
# pathmap(spec = nil) { . . . } -> String (27201.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...自身を表します。
%d は数値のプレフィクスを取ることができます。
例:
'a/b/c/d/file.txt'.pathmap("%2d") # => 'a/b'
'a/b/c/d/file.txt'.pathmap("%-2d") # => 'c/d'
また、%d, %p, %f, %n, %x, %X には単純な文字列置換を行うための
置換パターン......A.java".pathmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。
例:
"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/path/to/fil... -
String
# pathmap _ partial(n) -> String (27201.0) -
自身から与えられた階層分パスを抜粋します。
自身から与えられた階層分パスを抜粋します。
与えられた数値が正である場合は左から、負である場合は右から抜粋します。 -
String
# pathmap _ explode -> Array (27122.0) -
自身をパスを表す部分ごとに分解して配列にして返します。 String#pathmap で利用される protected メソッドです。
...自身をパスを表す部分ごとに分解して配列にして返します。
String#pathmap で利用される protected メソッドです。
@see String#pathmap... -
String
# match(regexp , pos = 0) {|m| . . . } -> object (27100.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... -
String
# match?(regexp , pos = 0) -> bool (27100.0) -
regexp.match?(self, pos) と同じです。 regexp が文字列の場合は、正規表現にコンパイルします。 詳しくは Regexp#match? を参照してください。
...regexp.match?(self, pos) と同じです。
regexp が文字列の場合は、正規表現にコンパイルします。
詳しくは Regexp#match? を参照してください。
//emlist[例][ruby]{
"Ruby".match?(/R.../) #=> true
"Ruby".match?(/R.../, 1) #=> false
"Ruby".match?(/P.../) #=>......false
$& #=> nil
//}
@see Regexp#match?, Symbol#match?... -
String
# concat(other) -> self (24106.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"
p str # => "stringXXX"
str << "YYY"
p str # => "stringXXXYYY"
str << 65 # 文字AのASCIIコード
p str # => "stringXXXYYYA"
//}... -
String
# concat(*arguments) -> self (24101.0) -
self に複数の文字列を破壊的に連結します。
...ding です。
self を返します。
@param arguments 複数の文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "foo"
str.concat
p str # => "foo"
str = "foo"
str.concat "bar", "baz"
p str # => "foobarbaz"
str = "foo"
str.concat("!", 33, 33)
p str # => "foo!!!"
//}... -
JSON
:: Ext :: Generator :: GeneratorMethods :: String (24016.0) -
Alias of JSON::Generator::GeneratorMethods::String
...Alias of JSON::Generator::GeneratorMethods::String...