ライブラリ
- ビルトイン (560)
-
cgi
/ core (48) -
cgi
/ html (564) - csv (24)
- dbm (12)
-
irb
/ context (24) - json (156)
-
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 (12)
-
minitest
/ unit (3) - mkmf (84)
-
net
/ http (24) -
net
/ imap (12) - open-uri (24)
- openssl (132)
- optparse (324)
- psych (48)
- rake (24)
-
rubygems
/ commands / unpack _ command (12) -
rubygems
/ user _ interaction (60) - socket (72)
- stringio (24)
- strscan (12)
- time (24)
- uri (12)
-
webrick
/ httpresponse (36) - zlib (24)
クラス
-
ARGF
. class (36) - Array (12)
- BasicSocket (36)
- BigDecimal (12)
- CGI (24)
- Complex (12)
- DBM (12)
- Date (12)
- DateTime (12)
-
Encoding
:: Converter (60) - Exception (32)
-
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: StreamUI (48) - IO (24)
-
IRB
:: Context (24) -
JSON
:: State (48) -
MiniTest
:: Unit (1) - Module (168)
-
Net
:: HTTPResponse (24) -
Net
:: IMAP :: ContentDisposition (12) - Object (96)
-
OpenSSL
:: Config (72) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: StoreContext (12) - OpenStruct (12)
- OptionParser (312)
-
OptionParser
:: ParseError (12) -
Psych
:: Nodes :: Node (24) -
RDoc
:: Options (12) - Range (12)
- Rational (12)
- Regexp (12)
- Socket (24)
- String (204)
- StringIO (24)
- StringScanner (12)
- Struct (12)
- Symbol (12)
- Time (48)
- UDPSocket (12)
-
URI
:: Generic (12) -
WEBrick
:: HTTPResponse (36) -
Zlib
:: Deflate (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (564) -
CGI
:: QueryExtension (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 (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (96)
-
MiniTest
:: Assertions (2) -
OpenSSL
:: Buffering (12) -
OpenURI
:: OpenRead (24)
キーワード
- === (12)
- [] (36)
- a (24)
-
add
_ value (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
ap
_ name= (12) -
arg
_ config (12) - ask (24)
- autoload (12)
- autoload? (12)
- base (12)
- blockquote (24)
- byteindex (3)
- capitalize (9)
- capitalize! (9)
- caption (24)
- checkbox (24)
-
checkbox
_ group (24) - clone (12)
- concat (33)
- connect (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) -
content
_ length (12) -
content
_ length= (12) - convert (12)
-
create
_ ext _ from _ string (12) -
create
_ extension (24) -
create
_ header (12) -
default
_ argv (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - desc (12)
-
dir
_ config (12) - downcase (9)
- downcase! (9)
- dup (12)
-
enable
_ config (24) - encode (36)
- encode! (24)
- environment (12)
- error= (12)
-
exception
_ details (1) - fetch (12)
-
file
_ field (24) - form (48)
-
get
_ path (12) -
get
_ value (12) - header (12)
- hidden (24)
- html (24)
- img (24)
- indent= (12)
-
insert
_ output (12) -
irb
_ name= (12) - iso8601 (12)
- kconv (12)
-
module
_ function (36) -
mu
_ pp (1) -
multipart
_ form (48) -
object
_ nl= (12) - open (12)
- order (48)
- order! (24)
- out (12)
- params (12)
- parse (24)
- parse! (12)
-
parse
_ csv (12) - partition (12)
-
password
_ field (24) - permute (24)
- permute! (12)
-
private
_ constant (12) -
psych
_ to _ yaml (12) -
public
_ constant (12) - puke (1)
- putback (24)
-
radio
_ group (24) -
rake
_ extension (12) - read (12)
-
read
_ body (24) -
read
_ nonblock (48) -
recv
_ nonblock (12) -
recvfrom
_ nonblock (24) - recvmsg (12)
-
recvmsg
_ nonblock (12) -
remove
_ const (12) - replacement= (12)
- reset (24)
- rpartition (12)
-
scrolling
_ list (24) - section (12)
- select (12)
-
set
_ backtrace (24) -
set
_ dictionary (24) -
set
_ encoding (24) -
singleton
_ method (12) - space= (12)
-
space
_ before= (12) - strftime (12)
- submit (24)
- swapcase (9)
- swapcase! (9)
-
text
_ field (24) - textarea (24)
- title= (12)
-
to
_ csv (12) -
to
_ json (252) -
to
_ yaml (24) - upcase (9)
- upcase! (9)
- value (24)
-
with
_ config (24) -
write
_ nonblock (24) - xmlschema (12)
- yaml (12)
検索結果
先頭5件
-
String
# partition(sep) -> [String , String , String] (45937.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#split... -
String
# rpartition(sep) -> [String , String , String] (45937.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
# kconv(out _ code , in _ code = Kconv :: AUTO) -> String (39515.0) -
self のエンコーディングを out_code に変換した文字列を 返します。 out_code in_code は Kconv の定数で指定します。
...self のエンコーディングを out_code に変換した文字列を
返します。
out_code in_code は Kconv の定数で指定します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します。
これらを変換......したくない場合は、 NKF.#nkf を使ってください。
@param out_code 変換後のエンコーディングを Kconv の定数で指定します。
@param in_code 変換する文字列のエンコーディングを Kconv の定数で指定します。
@see Kconv.#kconv... -
String
# concat(*arguments) -> self (39222.0) -
self に複数の文字列を破壊的に連結します。
...は Integer#chr の結果に相当する文字を末尾に追加します。追加する文字のエンコーディングは self.encoding です。
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!!!"
//}
@see String#append_as_bytes... -
String
# concat(other) -> self (39222.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"
p str # => "str......ingXXX"
str << "YYY"
p str # => "stringXXXYYY"
str << 65 # 文字AのASCIIコード
p str # => "stringXXXYYYA"
//}... -
String
# concat(*arguments) -> self (39210.0) -
self に複数の文字列を破壊的に連結します。
...は Integer#chr の結果に相当する文字を末尾に追加します。追加する文字のエンコーディングは self.encoding です。
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!!!"
//}... -
String
# capitalize(*options) -> String (36469.0) -
文字列先頭の文字を大文字に、残りを小文字に変更した文字列を返します。
...@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "foobar--".capitalize # => "Foobar--"
p "fooBAR--".capitalize # => "Foobar--"
p "FOOBAR--".capitalize # => "Foobar--"
//}
@see String#capitalize!, String#upcase,
String#dow......ncase, String#swapcase... -
String
# byteindex(pattern , offset = 0) -> Integer | nil (36343.0) -
文字列の offset から右に向かって pattern を検索し、 最初に見つかった部分文字列の左端のバイト単位のインデックスを返します。 見つからなければ nil を返します。
...文字列の offset から右に向かって pattern を検索し、
最初に見つかった部分文字列の左端のバイト単位のインデックスを返します。
見つからなければ nil を返します。
引数 pattern は探索する部分文字列または正規表現で指定......します。
offset が負の場合、文字列の末尾から数えた位置から探索します。
@param pattern 探索する部分文字列または正規表現
@param offset 探索を開始するバイト単位のオフセット
@raise IndexError オフセットが文字列の境界......emlist[例][ruby]{
'foo'.byteindex('f') # => 0
'foo'.byteindex('o') # => 1
'foo'.byteindex('oo') # => 1
'foo'.byteindex('ooo') # => nil
'foo'.byteindex(/f/) # => 0
'foo'.byteindex(/o/) # => 1
'foo'.byteindex(/oo/) # => 1
'foo'.byteindex(/ooo/) # => nil
'foo'.byteindex('o', 1) # => 1
'foo'.byteinde... -
String
# capitalize!(*options) -> self | nil (36267.0) -
文字列先頭の文字を大文字に、残りを小文字に破壊的に変更します。
...す。
@param options オプションの詳細は String#downcase を参照してください。
@return capitalize! は self を変更して返しますが、
変更が起こらなかった場合は nil を返します。
//emlist[例][ruby]{
str = "foobar"
str.capitalize!
p str # => "......Foobar"
str = "fooBAR"
str.capitalize!
p str # => "Foobar"
//}
@see String#capitalize, String#upcase!,
String#downcase!, String#swapcase!... -
String
# upcase(*options) -> String (33517.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 (33505.0) -
全ての大文字を対応する小文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...ィングに依存します。
@param options オプションの意味は以下の通りです。
: オプションなし
完全な Unicode ケースマッピングに対応し、ほとんどの言語に適しています。(例外は以下の :turkic,
:lithuanian オプションを参照)
U......: :turkic
チュルク語族 (トルコ語、アゼルバイジャン語など) に適合した完全な Unicode ケースマッピングです。
これはたとえば大文字の I は小文字のドットなしの i (ı) にマッピングされることを意味します。
: :lithuanian......str.downcase == str.upcase.downcase)。
そして、Unicode 正規化 (すなわち String#unicode_normalize) はケース
マッピング操作で必ずしも維持されるとは限りません。
現在 ASCII 以外のケースマッピング/フォールディングは、UTF-8, UTF-16BE/LE,
UTF... -
String
# swapcase(*options) -> String (33469.0) -
大文字を小文字に、小文字を大文字に変更した文字列を返します。
...した文字列を返します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "ABCxyz".swapcase # => "abcXYZ"
p "Access".swapcase # => "aCCESS"
//}
@see String#swapcase!, String#upcase, String#downcase, String#capitalize...