ライブラリ
- ビルトイン (932)
-
cgi
/ core (36) -
cgi
/ html (564) - csv (24)
- dbm (12)
- fiddle (12)
-
irb
/ context (108) -
irb
/ ext / save-history (12) - json (168)
-
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
/ ftp (36) -
net
/ http (36) -
net
/ imap (96) - open-uri (24)
- openssl (276)
- optparse (468)
- pathname (12)
- psych (48)
- rake (24)
-
rdoc
/ markup (12) -
rubygems
/ command (24) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ specification (36) -
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 (96) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (12) - Exception (44)
-
Fiddle
:: Function (12) -
Gem
:: Command (24) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Specification (36) -
Gem
:: StreamUI (48) - IO (24)
-
IRB
:: Context (120) -
JSON
:: State (48) - MatchData (2)
- Method (12)
-
MiniTest
:: Unit (1) - Module (168)
-
Net
:: FTP (36) -
Net
:: HTTP (12) -
Net
:: HTTPResponse (24) -
Net
:: IMAP :: BodyTypeBasic (24) -
Net
:: IMAP :: BodyTypeMessage (24) -
Net
:: IMAP :: BodyTypeText (24) -
Net
:: IMAP :: TaggedResponse (12) -
Net
:: IMAP :: UntaggedResponse (12) - Object (108)
-
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: Config (72) -
OpenSSL
:: OCSP :: Response (24) -
OpenSSL
:: SSL :: SSLContext (36) -
OpenSSL
:: SSL :: Session (36) -
OpenSSL
:: X509 :: Extension (36) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: StoreContext (12) - OpenStruct (12)
- OptionParser (360)
-
OptionParser
:: ParseError (60) - Pathname (12)
- Proc (12)
-
Psych
:: Nodes :: Node (24) -
RDoc
:: Markup (12) -
RDoc
:: Options (24) - Range (12)
- Rational (36)
- Regexp (12)
-
RubyVM
:: InstructionSequence (94) - Socket (24)
- String (216)
- StringIO (24)
- StringScanner (12)
- Struct (12)
- Symbol (48)
-
Thread
:: Backtrace :: Location (72) - Time (48)
- UDPSocket (12)
-
URI
:: Generic (12) - UnboundMethod (12)
-
WEBrick
:: HTTPResponse (36) -
Zlib
:: Deflate (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (564) -
CGI
:: QueryExtension (12) -
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 (24) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (96)
-
MiniTest
:: Assertions (2) -
OpenSSL
:: Buffering (12) -
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (48)
キーワード
- === (12)
- [] (36)
-
_ dump (12) - a (24)
-
absolute
_ path (24) -
add
_ value (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
ap
_ name (12) -
ap
_ name= (12) -
arg
_ config (12) - ask (24)
- autoload (12)
- autoload? (12)
- backtrace (12)
- base (12)
-
base
_ label (24) - binread (12)
- blockquote (24)
- byteindex (3)
-
ca
_ file (12) -
ca
_ path (12) - capitalize (18)
- 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 (12)
-
content
_ id (36) -
content
_ length (12) -
content
_ length= (12) - convert (12)
-
create
_ ext _ from _ string (12) -
create
_ extension (24) -
create
_ header (12) - deconstruct (2)
-
default
_ argv (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - desc (12)
- description (36)
-
destination
_ encoding _ name (24) -
dir
_ config (12) - disasm (12)
- disassemble (12)
- downcase (18)
- downcase! (9)
- dup (12)
-
enable
_ config (24) - encode (36)
- encode! (24)
- environment (12)
- error= (12)
-
error
_ bytes (12) -
exception
_ details (1) - fetch (12)
-
file
_ field (24) - finish (12)
- form (48)
-
get
_ one _ gem _ name (12) -
get
_ one _ optional _ argument (12) -
get
_ path (12) -
get
_ value (12) - header (12)
- hidden (24)
-
history
_ file (12) - html (24)
- img (24)
- indent= (12)
-
insert
_ output (12) - inspect (60)
-
irb
_ name (12) -
irb
_ name= (12) - iso8601 (12)
- kconv (12)
- label (24)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
-
long
_ name (12) -
module
_ function (36) -
mu
_ pp (1) -
multipart
_ form (48) - name (12)
-
object
_ nl= (12) - oid (12)
-
op
_ dir (12) - open (12)
- order (48)
- order! (48)
-
original
_ name (12) - out (12)
- parse (24)
- parse! (24)
-
parse
_ csv (12) - partition (12)
-
password
_ field (24) - path (24)
- permute (24)
- permute! (24)
-
private
_ constant (12) -
program
_ name (12) -
prompt
_ c (12) -
prompt
_ i (12) -
prompt
_ n (12) -
prompt
_ s (12) -
psych
_ to _ yaml (12) -
public
_ constant (12) - puke (1)
- putback (24)
-
radio
_ group (24) -
rake
_ extension (12) -
raw
_ data (24) - read (12)
-
read
_ body (24) -
read
_ nonblock (48) - reason (12)
-
recv
_ nonblock (12) -
recvfrom
_ nonblock (24) - recvmsg (12)
-
recvmsg
_ nonblock (12) -
remove
_ const (12) - replacement (12)
- replacement= (12)
-
require
_ path (12) - reset (24)
-
return
_ format (12) - rpartition (12)
-
scrolling
_ list (24) - section (12)
- select (12)
-
session
_ id _ context (12) -
set
_ backtrace (24) -
set
_ dictionary (24) -
set
_ encoding (24) -
singleton
_ class (12) -
singleton
_ method (12) -
source
_ location (36) - space= (12)
-
space
_ before= (12) -
ssl
_ version (12) - status (12)
-
status
_ string (12) - strftime (12)
- submit (24)
-
summary
_ indent (12) - swapcase (18)
- swapcase! (9)
-
text
_ field (24) - textarea (24)
- title= (12)
-
to
_ binary (10) -
to
_ csv (12) -
to
_ der (24) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ pem (12) -
to
_ r (12) -
to
_ s (36) -
to
_ text (12) -
to
_ yaml (24) - upcase (18)
- upcase! (9)
- value (36)
- version (12)
-
with
_ config (24) -
write
_ nonblock (24) - xmlschema (12)
- yaml (12)
検索結果
先頭5件
-
String
# partition(sep) -> [String , String , String] (36743.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#spl... -
String
# rpartition(sep) -> [String , String , String] (36743.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 (36421.0) -
self のエンコーディングを out_code に変換した文字列を 返します。 out_code in_code は Kconv の定数で指定します。
...out_code in_code は Kconv の定数で指定します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します。
これらを変換したくない場合は、 NKF.#nkf を使ってください。
@param out_code 変換後......のエンコーディングを Kconv の定数で指定します。
@param in_code 変換する文字列のエンコーディングを Kconv の定数で指定します。
@see Kconv.#kconv... -
String
# concat(*arguments) -> self (33128.0) -
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 (33123.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"
//}......追加します。
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 (33110.0) -
self に複数の文字列を破壊的に連結します。
...ncoding です。
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
# upcase(*options) -> String (30423.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 (30411.0) -
全ての大文字を対応する小文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...す。
どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
@param options オプションの意味は以下の通りです。
: オプションなし
完全な Unicode ケースマッピングに対応し、ほ......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 (30375.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
# swapcase(*options) -> String (30375.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 (30361.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ません。
@param encoding 変換先のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param from_encoding 変換元のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param option 変換......オプションをキーワード引数で与えます。
@return 変換された文字列
変換オプション
: :invalid => nil
変換元のエンコーディングにおいて不正なバイトがあった場合に、例外 Encoding::InvalidByteSequenceError を投げます。(......例外 Encoding::UndefinedConversionError を投げます。(デフォルト)
: :undef => :replace
変換先のエンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :repla...