ライブラリ
- ビルトイン (763)
- benchmark (12)
- bigdecimal (12)
-
cgi
/ core (36) -
cgi
/ html (96) - csv (24)
- dbm (12)
- gdbm (12)
- getoptlong (24)
-
irb
/ cmd / help (12) -
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) - mkmf (12)
-
net
/ ftp (82) -
net
/ imap (48) -
net
/ smtp (36) - open-uri (12)
- openssl (108)
- optparse (192)
- pathname (60)
- rake (12)
-
rdoc
/ markup (12) - resolv (36)
-
rubygems
/ user _ interaction (12) - scanf (18)
- sdbm (12)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ system-command (12) - socket (24)
- stringio (56)
- strscan (36)
- uri (12)
-
win32
/ registry (24) -
yaml
/ dbm (12) - zlib (72)
クラス
- Array (57)
- BasicObject (12)
- BasicSocket (24)
-
Benchmark
:: Tms (12) - BigDecimal (24)
- CGI (24)
- Complex (36)
- DBM (12)
- Date (12)
- DateTime (12)
- Enumerator (12)
- Exception (24)
- GDBM (12)
- GetoptLong (24)
- IO (66)
-
IRB
:: ExtendCommand :: Help (12) - MatchData (12)
- Module (192)
-
Net
:: FTP (72) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: IMAP :: ContentDisposition (12) -
Net
:: IMAP :: MailboxList (12) -
Net
:: IMAP :: TaggedResponse (12) -
Net
:: IMAP :: UntaggedResponse (12) -
Net
:: SMTP (36) - Object (24)
-
OpenSSL
:: OCSP :: Response (12) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKey :: RSA (48) -
OpenSSL
:: X509 :: Name (12) -
OpenSSL
:: X509 :: StoreContext (12) - OpenStruct (12)
- OptionParser (192)
- Pathname (60)
-
RDoc
:: Markup (12) -
Rake
:: FileList (12) - Range (12)
- Rational (12)
- Refinement (4)
- Regexp (12)
-
Resolv
:: DNS (36) - SDBM (12)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: SystemCommand (12) - String (312)
- StringIO (56)
- StringScanner (36)
- Struct (12)
- Symbol (60)
- Time (24)
-
URI
:: Generic (12) - UnboundMethod (12)
-
Win32
:: Registry (24) -
YAML
:: DBM (12) -
Zlib
:: Deflate (36) -
Zlib
:: GzipReader (36)
モジュール
-
CGI
:: HtmlExtension (96) -
CGI
:: QueryExtension (12) -
Gem
:: UserInteraction (12) - Kernel (18)
-
OpenURI
:: OpenRead (12)
キーワード
- % (12)
- << (12)
- === (12)
- [] (12)
-
_ _ id _ _ (12) -
add
_ word _ pair (12) -
alias
_ method (12) - arity (12)
- ask (12)
- attr (24)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - backtrace (12)
- binread (12)
- binwrite (12)
- capitalize (18)
- capitalize! (9)
-
checkbox
_ group (24) - concat (9)
- count (12)
- crypt (12)
- decrypt (12)
- deflate (12)
- delete (12)
- delete! (12)
-
deprecate
_ constant (12) - dir (24)
- downcase (18)
- downcase! (9)
-
each
_ resource (12) - echo (18)
- encode (36)
-
end
_ with? (18) - execute (12)
- facts (10)
- finish (12)
- format (12)
- get (12)
-
get
_ option (12) - getresource (12)
- getresources (12)
- gets (12)
-
import
_ methods (4) - inspect (24)
- join (18)
- keys (12)
- list (24)
- ls (24)
-
merge
_ libs (12) -
module
_ function (12) - name (24)
- notify (12)
- on (144)
- open (12)
- order (24)
- out (12)
- pack (21)
- param (12)
- parse (12)
-
parse
_ csv (12) - permute (12)
- prepend (9)
- print (24)
- printf (12)
- private (12)
-
private
_ class _ method (12) -
private
_ constant (12) -
private
_ decrypt (12) -
private
_ encrypt (12) - protected (12)
- public (12)
-
public
_ class _ method (12) -
public
_ constant (12) -
public
_ decrypt (12) -
public
_ encrypt (12) - puts (12)
-
radio
_ group (24) - read (48)
- readline (12)
- readlines (12)
- readpartial (12)
- recvmsg (12)
-
recvmsg
_ nonblock (12) -
remove
_ method (12) -
scan
_ full (12) - scanf (18)
-
scrolling
_ list (24) -
search
_ full (12) - seek (12)
- select (24)
-
send
_ mail (12) - sendmail (12)
-
set
_ encoding (24) - split (12)
- squeeze (12)
- squeeze! (12)
-
start
_ with? (18) - status (12)
- strftime (12)
- swapcase (18)
- swapcase! (9)
- sysread (12)
-
to
_ c (12) -
to
_ csv (12) -
to
_ f (12) -
to
_ json (144) -
to
_ r (12) -
to
_ s (24) -
to
_ str (12) -
undef
_ method (12) - unpack (12)
- upcase (18)
- upcase! (9)
-
values
_ at (48) - verify (24)
-
with
_ object (12) - write (20)
検索結果
先頭5件
-
String
# *(times) -> String (27220.0) -
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
...self を times 回繰り返した新しい文字列
@raise ArgumentError 引数に負数を指定したときに発生します。
//emlist[例][ruby]{
p "str" * 3 # => "strstrstr"
str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str # => "abc" (変化なし)
//}... -
Array
# *(sep) -> String (18209.0) -
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
...ep) と同じ動作をします。
@param sep 文字列を指定します。
文字列以外のオブジェクトを指定した場合は to_str メソッドによ
る暗黙の型変換を試みます。
//emlist[例][ruby]{
p [1,2,3] * ","
# => "1,2,3"
//}
@see Array#join... -
Rake
:: FileList # *(other) -> Array | String (18202.0) -
Array#* と動作を合わせるために再定義しています。
...Array#* と動作を合わせるために再定義しています。
@see Array#*... -
Array
# *(times) -> Array (18109.0) -
配列の内容を times 回 繰り返した新しい配列を作成して返します。 値はコピーされないことに注意してください。
...or 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
@raise ArgumentError 引数に負の数を指定した場合に発生します。
//emlist[例][ruby]{
p [1, 2, 3] * 3 #=> [1, 2, 3, 1, 2, 3, 1, 2, 3]
//}... -
String
# upcase(*options) -> String (9256.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 (9250.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 (9232.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 (9232.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 (9216.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 (9216.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!...