ライブラリ
- ビルトイン (692)
- benchmark (11)
- bigdecimal (11)
-
cgi
/ core (33) -
cgi
/ html (88) - csv (22)
- dbm (11)
- gdbm (11)
- getoptlong (22)
-
irb
/ cmd / help (11) -
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / ostruct (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / symbol (11) -
json
/ add / time (11) - mkmf (11)
-
net
/ ftp (75) -
net
/ imap (44) -
net
/ smtp (33) - open-uri (11)
- openssl (99)
- optparse (176)
- pathname (55)
- psych (22)
- rake (11)
-
rdoc
/ markup (11) - resolv (33)
-
rubygems
/ user _ interaction (11) - scanf (18)
- sdbm (11)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ system-command (12) - socket (22)
- stringio (51)
- strscan (33)
- uri (11)
-
win32
/ registry (22) -
yaml
/ dbm (11) - zlib (66)
クラス
- Array (52)
- BasicObject (11)
- BasicSocket (22)
-
Benchmark
:: Tms (11) - BigDecimal (22)
- CGI (22)
- Complex (33)
- DBM (11)
- Date (11)
- DateTime (11)
- Enumerator (11)
- Exception (22)
- GDBM (11)
- GetoptLong (22)
- IO (61)
-
IRB
:: ExtendCommand :: Help (11) - MatchData (11)
- Module (174)
-
Net
:: FTP (66) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: IMAP :: ContentDisposition (11) -
Net
:: IMAP :: MailboxList (11) -
Net
:: IMAP :: TaggedResponse (11) -
Net
:: IMAP :: UntaggedResponse (11) -
Net
:: SMTP (33) - Object (22)
-
OpenSSL
:: OCSP :: Response (11) -
OpenSSL
:: PKCS7 (22) -
OpenSSL
:: PKey :: RSA (44) -
OpenSSL
:: X509 :: Name (11) -
OpenSSL
:: X509 :: StoreContext (11) - OpenStruct (11)
- OptionParser (176)
- Pathname (55)
-
RDoc
:: Markup (11) -
Rake
:: FileList (11) - Range (11)
- Rational (11)
- Refinement (3)
- Regexp (11)
-
Resolv
:: DNS (33) - SDBM (11)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: SystemCommand (12) - String (284)
- StringIO (51)
- StringScanner (33)
- Struct (11)
- Symbol (53)
- Time (22)
-
URI
:: Generic (11) - UnboundMethod (11)
-
Win32
:: Registry (22) -
YAML
:: DBM (11) -
Zlib
:: Deflate (33) -
Zlib
:: GzipReader (33)
モジュール
-
CGI
:: HtmlExtension (88) -
CGI
:: QueryExtension (11) -
Gem
:: UserInteraction (11) - Kernel (39)
-
OpenURI
:: OpenRead (11)
キーワード
- % (11)
- << (11)
- === (11)
- [] (11)
-
_ _ id _ _ (11) -
add
_ word _ pair (11) -
alias
_ method (11) - arity (11)
- ask (11)
- attr (22)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - backtrace (11)
- binread (11)
- binwrite (11)
- capitalize (16)
- capitalize! (8)
-
checkbox
_ group (22) - concat (8)
- count (11)
- crypt (11)
- decrypt (11)
- deflate (11)
- delete (11)
- delete! (11)
-
deprecate
_ constant (9) - dir (22)
- downcase (16)
- downcase! (8)
-
each
_ resource (11) - echo (18)
- encode (33)
-
end
_ with? (16) - execute (11)
- facts (9)
- finish (11)
- format (11)
- get (11)
-
get
_ option (11) - getresource (11)
- getresources (11)
- gets (11)
-
import
_ methods (3) - inspect (22)
- join (18)
- keys (11)
- list (22)
- ls (22)
-
merge
_ libs (11) -
module
_ function (11) - name (22)
- notify (12)
- on (132)
- open (11)
- order (22)
- out (11)
- pack (19)
- param (11)
- parse (11)
-
parse
_ csv (11) - permute (11)
- prepend (8)
- print (22)
- printf (11)
- private (11)
-
private
_ class _ method (11) -
private
_ constant (11) -
private
_ decrypt (11) -
private
_ encrypt (11) - protected (11)
-
psych
_ y (11) - public (11)
-
public
_ class _ method (11) -
public
_ constant (11) -
public
_ decrypt (11) -
public
_ encrypt (11) - puts (11)
-
radio
_ group (22) - read (44)
- readline (11)
- readlines (11)
- readpartial (11)
- recvmsg (11)
-
recvmsg
_ nonblock (11) -
remove
_ method (11) -
scan
_ full (11) - scanf (18)
-
scrolling
_ list (22) -
search
_ full (11) - seek (11)
- select (22)
-
send
_ mail (11) - sendmail (11)
-
set
_ encoding (22) - split (11)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (16) - status (11)
- strftime (11)
- swapcase (16)
- swapcase! (8)
- sysread (11)
-
to
_ c (11) -
to
_ csv (11) -
to
_ f (11) -
to
_ json (132) -
to
_ r (11) -
to
_ s (22) -
to
_ str (11) -
undef
_ method (11) - unpack (11)
- upcase (16)
- upcase! (8)
-
values
_ at (44) - verify (22)
-
with
_ object (11) - write (18)
- y (11)
検索結果
先頭5件
-
String
# *(times) -> String (39220.0) -
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
...self を times 回繰り返した新しい文字列
@raise ArgumentError 引数に負数を指定したときに発生します。
//emlist[例][ruby]{
p "str" * 3 # => "strstrstr"
str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str # => "abc" (変化なし)
//}... -
String
# upcase(*options) -> String (21256.0) -
全ての小文字を対応する大文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...のエンコーディングに依存します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "stRIng? STring.".upcase # => "STRING? STRING."
//}
@see String#upcase!, String#downcase,
String#swapcase, String#capitalize... -
String
# downcase(*options) -> String (21250.0) -
全ての大文字を対応する小文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...e 正規化 (すなわち String#unicode_normalize) はケース
マッピング操作で必ずしも維持されるとは限りません。
現在 ASCII 以外のケースマッピング/フォールディングは、UTF-8, UTF-16BE/LE,
UTF-32BE/LE, ISO-8859-1~16 の String/Symbol でサポート......されています。
他のエンコーディングもサポートされる予定です。
//emlist[例][ruby]{
p "STRing?".downcase # => "string?"
//}
@see String#downcase!, String#upcase, String#swapcase, String#capitalize... -
String
# capitalize(*options) -> String (21232.0) -
文字列先頭の文字を大文字に、残りを小文字に変更した文字列を返します。
...ョンの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "foobar--".capitalize # => "Foobar--"
p "fooBAR--".capitalize # => "Foobar--"
p "FOOBAR--".capitalize # => "Foobar--"
//}
@see String#capitalize!, String#upcase,
String#downcase, String#swapcase... -
String
# swapcase(*options) -> String (21232.0) -
大文字を小文字に、小文字を大文字に変更した文字列を返します。
...した文字列を返します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "ABCxyz".swapcase # => "abcXYZ"
p "Access".swapcase # => "aCCESS"
//}
@see String#swapcase!, String#upcase, String#downcase, String#capitalize... -
String
# encode(**options) -> String (21216.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , **options) -> String (21216.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , from _ encoding , **options) -> String (21216.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# delete(*strs) -> String (21208.0) -
self から strs に含まれる文字を取り除いた文字列を生成して返します。
...合は、
すべての引数にマッチする文字だけが削除されます。
@param strs 削除する文字列を示す文字列 (のリスト)
//emlist[例][ruby]{
p "123456789".delete("2378") #=> "14569"
p "123456789".delete("2-8", "^4-6") #=> "14569"
//}
@see String#delete!... -
String
# prepend(*arguments) -> String (21203.0) -
複数の文字列を先頭に破壊的に追加します。
複数の文字列を先頭に破壊的に追加します。
@param arguments 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"
a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello world!!!"
//} -
String
# parse _ csv(**options) -> [String] (21202.0) -
CSV.parse_line(self, options) と同様です。
CSV.parse_line(self, options) と同様です。
1 行の CSV 文字列を、文字列の配列に変換するためのショートカットです。
@param options CSV.new と同様のオプションを指定します。
//emlist[][ruby]{
require "csv"
p "Matz,Ruby\n".parse_csv # => ["Matz", "Ruby"]
p "Matz|Ruby\r\n".parse_csv(col_sep: '|', row_sep: "\r\n") # => ...