種類
ライブラリ
- ビルトイン (1213)
- benchmark (33)
- bigdecimal (11)
-
cgi
/ core (33) -
cgi
/ html (88) -
cgi
/ util (44) - csv (66)
- dbm (11)
- gdbm (11)
- getoptlong (22)
-
irb
/ cmd / help (11) -
irb
/ extend-command (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 (37)
- open3 (132)
- openssl (132)
- optparse (176)
- pathname (55)
- psych (50)
- rake (11)
-
rdoc
/ markup (11) - readline (11)
- resolv (44)
-
rubygems
/ user _ interaction (11) - scanf (18)
- sdbm (11)
- securerandom (11)
- shell (18)
-
shell
/ builtin-command (6) -
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ system-command (12) - socket (33)
- stringio (51)
- strscan (33)
- uri (22)
-
win32
/ registry (22) -
yaml
/ dbm (11) - zlib (66)
クラス
- Array (52)
- BasicObject (11)
- BasicSocket (22)
-
Benchmark
:: Tms (22) - BigDecimal (22)
- CGI (66)
-
CGI
:: Cookie (11) - CSV (44)
- Complex (33)
- DBM (11)
- Data (4)
- Date (11)
- DateTime (11)
- Dir (33)
-
Encoding
:: Converter (33) - Enumerator (11)
- Exception (22)
- File (22)
- GDBM (11)
- GetoptLong (22)
- IO (160)
-
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 (33) -
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 (22)
-
Resolv
:: DNS (33) -
Resolv
:: DNS :: Resource :: TXT (11) - SDBM (11)
- Shell (18)
-
Shell
:: CommandProcessor (12) -
Shell
:: Echo (6) -
Shell
:: Filter (12) -
Shell
:: SystemCommand (12) - Socket (11)
- String (284)
- StringIO (51)
- StringScanner (33)
- Struct (55)
- Symbol (53)
- Time (22)
- TracePoint (22)
-
URI
:: Generic (11) - UnboundMethod (11)
-
Win32
:: Registry (22) -
YAML
:: DBM (11) -
Zlib
:: Deflate (33) -
Zlib
:: GzipReader (33)
モジュール
- Benchmark (11)
-
CGI
:: HtmlExtension (88) -
CGI
:: QueryExtension (11) - GC (11)
-
Gem
:: UserInteraction (11) -
IRB
:: ExtendCommandBundle (11) - Kernel (201)
- Marshal (22)
- Open3 (132)
- OpenURI (11)
-
OpenURI
:: OpenRead (11) - Psych (28)
- URI (18)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (11) - main (33)
キーワード
-
$ * (11) - % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (11)
- === (11)
- ASN1 (11)
- Buffering (11)
- FORMAT (22)
- Float (11)
- Marshal フォーマット (11)
- MatchData (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - OPTS (11)
- RSTRING (11)
-
RSTRING
_ END (11) -
RSTRING
_ PTR (11) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
- STR2CSTR (11)
- SecureRandom (11)
- StringValuePtr (11)
- Symbol (11)
- [] (33)
-
_ _ 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)
- bigdecimal (11)
-
bigdecimal
/ util (11) - binread (11)
- binwrite (11)
- caller (33)
- capitalize (16)
- capitalize! (8)
- capture2 (11)
- capture2e (11)
- capture3 (11)
- cgi (11)
-
checkbox
_ group (22) - chomp (11)
- chop (11)
- concat (8)
- count (11)
- crypt (11)
- decrypt (11)
-
def
_ extend _ command (11) - define (4)
- deflate (11)
- delete (11)
- delete! (11)
-
deprecate
_ constant (9) -
did
_ you _ mean (11) - dir (22)
- downcase (16)
- downcase! (8)
- dump (22)
-
dump
_ stream (11) -
each
_ resource (11) - echo (18)
- encode (33)
-
end
_ with? (16) - escapeElement (11)
-
escape
_ element (11) - execute (11)
- facts (9)
- finish (11)
-
for
_ fd (11) - format (22)
- ftype (11)
- get (11)
-
get
_ option (11) - getaddrinfo (11)
- getresource (11)
- getresources (11)
- gets (11)
- glob (22)
- gsub (33)
-
import
_ methods (3) - inspect (22)
- irb (11)
- join (29)
- keys (11)
- list (22)
-
literal
_ concat _ string (11) - ls (22)
-
merge
_ libs (11) -
module
_ function (11) - name (22)
- new (116)
- notify (18)
- on (132)
- open (92)
-
open
_ uri (11) - order (22)
- out (11)
- pack (19)
- pack テンプレート文字列 (11)
- param (11)
- parse (11)
-
parse
_ csv (11) -
parse
_ string (11) - permute (11)
- pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - pp (11)
- prepend (8)
- print (22)
- printf (11)
- private (22)
-
private
_ class _ method (11) -
private
_ constant (11) -
private
_ decrypt (11) -
private
_ encrypt (11) - protected (11)
-
psych
_ y (11) - public (22)
-
public
_ class _ method (11) -
public
_ constant (11) -
public
_ decrypt (11) -
public
_ encrypt (11) - push (11)
- puts (11)
-
radio
_ group (22) -
rb
_ check _ convert _ type (11) -
rb
_ compile _ string (11) -
rb
_ eval _ string (11) -
rb
_ eval _ string _ protect (11) -
rb
_ eval _ string _ wrap (11) - rdoc (11)
-
rdoc
/ markup / to _ bs (11) - read (77)
- readline (11)
- readlines (11)
- readpartial (11)
- recvmsg (11)
-
recvmsg
_ nonblock (11) -
remove
_ method (11) - rss (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) -
safe
_ load (17) -
scan
_ full (11) - scanf (18)
-
scrolling
_ list (22) -
search
_ full (11) - seek (11)
- select (22)
-
send
_ mail (11) - sendmail (11)
-
set
_ encoding (22) - socket (11)
- split (22)
- sprintf (11)
- sprintf フォーマット (11)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (16) - status (11)
- strftime (11)
- strhash (11)
- sub (22)
- 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) - trace (11)
-
undef
_ method (11) - unescapeElement (11)
-
unescape
_ element (11) - union (11)
- unpack (11)
- upcase (16)
- upcase! (8)
- using (11)
-
values
_ at (55) - verify (22)
-
webrick
/ cgi (11) -
with
_ object (11) - write (40)
-
write
_ smime (11) - y (11)
- yaml (11)
- このマニュアルのヘルプ (11)
- クラス/メソッドの定義 (11)
- リテラル (11)
- 多言語化 (11)
- 正規表現 (11)
検索結果
先頭5件
-
String
# *(times) -> String (39219.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 (21255.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 (21249.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 (21231.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 (21231.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 (21215.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 (21215.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 (21215.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 (21207.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 (21202.0) -
複数の文字列を先頭に破壊的に追加します。
複数の文字列を先頭に破壊的に追加します。
@param arguments 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"
a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello world!!!"
//} -
String
# parse _ csv(**options) -> [String] (21201.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") # => ...