ライブラリ
- ビルトイン (879)
-
cgi
/ core (276) -
cgi
/ html (540) - csv (48)
- date (12)
- dbm (12)
- drb (12)
- fiddle (12)
- getoptlong (12)
- ipaddr (12)
-
irb
/ context (84) - json (276)
-
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)
- logger (1)
-
minitest
/ unit (4) - mkmf (84)
-
net
/ ftp (36) -
net
/ http (60) -
net
/ imap (204) - open-uri (48)
- openssl (180)
- optparse (528)
- pathname (12)
- psych (60)
- rake (96)
-
rake
/ packagetask (12) -
rake
/ rdoctask (12) -
rake
/ testtask (12) -
rdoc
/ context (24) -
rdoc
/ markup (12) - rexml (12)
-
rexml
/ document (108) -
rubygems
/ command (36) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ platform (12) -
rubygems
/ specification (432) -
rubygems
/ user _ interaction (60) -
rubygems
/ version (24) - socket (120)
- stringio (12)
- strscan (12)
- time (24)
- uri (12)
-
webrick
/ httpresponse (36) - zlib (24)
クラス
-
ARGF
. class (36) - Addrinfo (12)
- Array (12)
- BasicSocket (36)
- BigDecimal (12)
- Binding (7)
- CGI (12)
-
CSV
:: Table (24) - Class (12)
- Complex (12)
- DBM (12)
-
DRb
:: DRbRemoteError (12) - Date (12)
- DateTime (24)
-
Encoding
:: Converter (60) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (24) - Exception (68)
-
Fiddle
:: Function (12) -
Gem
:: Command (36) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: Platform (12) -
Gem
:: Specification (432) -
Gem
:: StreamUI (48) -
Gem
:: Version (24) - GetoptLong (12)
- IO (24)
- IPAddr (12)
-
IRB
:: Context (84) -
JSON
:: Parser (12) -
JSON
:: State (120) -
Logger
:: Application (1) - MatchData (2)
- Method (12)
-
MiniTest
:: Unit (2) - Module (156)
-
Net
:: FTP (36) -
Net
:: HTTPResponse (48) -
Net
:: IMAP (12) -
Net
:: IMAP :: BodyTypeBasic (24) -
Net
:: IMAP :: BodyTypeMessage (24) -
Net
:: IMAP :: BodyTypeText (24) -
Net
:: IMAP :: ContentDisposition (24) -
Net
:: IMAP :: ContinuationRequest (12) -
Net
:: IMAP :: ResponseCode (12) -
Net
:: IMAP :: ResponseText (12) -
Net
:: IMAP :: TaggedResponse (36) -
Net
:: IMAP :: UntaggedResponse (24) - Object (96)
-
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: Config (48) -
OpenSSL
:: OCSP :: Response (24) -
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: X509 :: Extension (24) -
OpenSSL
:: X509 :: ExtensionFactory (36) - OpenStruct (12)
- OptionParser (420)
-
OptionParser
:: ParseError (60) - Pathname (12)
- Proc (12)
-
Psych
:: Nodes :: Node (24) -
Psych
:: SyntaxError (12) -
RDoc
:: Context (24) -
RDoc
:: Markup (12) -
RDoc
:: Options (108) -
REXML
:: Declaration (12) -
REXML
:: Document (12) -
REXML
:: Instruction (12) -
REXML
:: NotationDecl (48) -
REXML
:: ParseException (12) -
REXML
:: XMLDecl (24) -
Rake
:: Application (36) -
Rake
:: InvocationChain (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: PackageTask (12) -
Rake
:: RDocTask (12) -
Rake
:: Task (12) -
Rake
:: TestTask (12) - Range (12)
- Rational (36)
- Regexp (12)
-
RubyVM
:: InstructionSequence (82) - SignalException (12)
- Socket (24)
-
Socket
:: Option (36) - String (168)
- StringIO (12)
- StringScanner (12)
- Struct (12)
- Symbol (48)
-
Thread
:: Backtrace :: Location (72) - Time (48)
- UDPSocket (12)
-
URI
:: LDAP (12) - UnboundMethod (24)
-
WEBrick
:: HTTPResponse (36) -
Zlib
:: Deflate (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (540) -
CGI
:: QueryExtension (264) -
Gem
:: InstallUpdateOptions (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 (36) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (84)
-
MiniTest
:: Assertions (2) -
Net
:: HTTPHeader (12) -
OpenSSL
:: Buffering (12) -
OpenURI
:: Meta (24) -
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (48) -
Rake
:: TaskManager (12)
キーワード
- [] (12)
-
_ dump (12) -
absolute
_ path (24) - accept (12)
-
accept
_ charset (12) -
accept
_ encoding (12) -
accept
_ language (12) -
add
_ value (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
ap
_ name (12) -
ap
_ name= (12) - appname (1)
-
arg
_ config (12) -
array
_ nl (12) -
ascii
_ only? (12) - ask (24)
-
auth
_ type (12) - autoload (12)
- autoload? (12)
- autorequire (12)
- backtrace (12)
- base (12)
-
base
_ label (24) - bindir (12)
- binread (12)
- byteindex (3)
-
ca
_ file (12) -
ca
_ path (12) -
cache
_ control (12) - canonname (12)
- capitalize (18)
- capitalize! (9)
- caption (24)
- charset (12)
- checkbox (24)
-
checkbox
_ group (24) - clone (24)
- concat (33)
-
config
_ file _ name (12) - connect (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - content (12)
-
content
_ encoding (12) -
content
_ id (36) -
content
_ type (24) - context (12)
-
create
_ body (12) -
create
_ ext _ from _ string (12) -
create
_ extension (24) -
create
_ header (12) - data (12)
- deconstruct (2)
-
default
_ argv (12) -
default
_ executable (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - description (60)
-
destination
_ encoding _ name (24) -
dir
_ config (12) - disasm (12)
- disassemble (12)
- downcase (18)
- downcase! (9)
-
dsp
_ type (12) - dup (12)
- email (12)
-
enable
_ config (24) - environment (12)
-
error
_ bytes (12) -
error
_ char (12) -
exception
_ details (1) - executable (12)
- executables (12)
- extensions (24)
-
extra
_ accessor _ flags (12) -
extra
_ rdoc _ files (12) - fetch (12)
-
file
_ field (24) -
file
_ name (12) - filename (12)
- files (12)
- form (48)
-
full
_ gem _ path (12) -
full
_ name (12) -
gateway
_ interface (12) - generate (12)
-
get
_ one _ gem _ name (12) -
get
_ one _ optional _ argument (12) -
get
_ path (12) -
get
_ value (12) - header (12)
- help (12)
- hidden (24)
- homepage (12)
- html (24)
- hton (12)
-
image
_ format (12) - img (24)
- indent (12)
- indent= (12)
-
insert
_ output (12) - inspect (36)
-
install
_ update _ defaults _ str (12) -
installation
_ path (12) - investigation (12)
-
irb
_ name (12) -
irb
_ name= (12) -
irb
_ path (12) - iso8601 (12)
-
json
_ creatable? (12) - kconv (12)
- keys (12)
- label (24)
-
last
_ description (12) -
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
-
lib
_ files (12) -
load
_ modules (12) -
loaded
_ from (12) - location (1)
-
long
_ name (12) -
main
_ page (12) -
mark
_ version (12) - markup (12)
-
module
_ function (24) - msg (12)
-
mu
_ pp (1) -
multipart
_ form (48) - name (96)
- negotiate (12)
- normalize (12)
-
object
_ nl (12) -
object
_ nl= (12) -
op
_ name (12) - open (12)
-
option
_ string (12) - order (48)
- order! (48)
-
original
_ dir (12) -
original
_ name (12) -
original
_ platform (12) - param (12)
- params (12)
- parse (24)
- parse! (24)
-
parse
_ csv (12) - partition (12)
-
password
_ field (24) - path (36)
-
path
_ info (12) -
path
_ translated (12) - permute (24)
- permute! (24)
- platform (12)
- pragma (12)
-
private
_ constant (12) -
program
_ name (12) -
psych
_ to _ yaml (12) - public (12)
-
public
_ constant (12) - puke (1)
- putback (24)
-
radio
_ group (24) -
rake
_ extension (12) - rakefile (12)
-
raw
_ data (36) - read (12)
-
read
_ body (24) -
read
_ nonblock (48) - reason (24)
-
reason
_ phrase (12) -
recv
_ nonblock (12) -
recvfrom
_ nonblock (24) - recvmsg (12)
-
recvmsg
_ nonblock (12) - release (12)
-
remote
_ addr (12) -
remove
_ const (12) - replacement (12)
- replacement= (12)
-
require
_ path (12) -
require
_ paths (12) - reset (24)
- responses (12)
-
return
_ format (12) - rpartition (12)
-
rubygems
_ version (12) -
script
_ name (12) -
scrolling
_ list (24) -
server
_ name (12) -
server
_ software (12) -
set
_ backtrace (24) -
set
_ dictionary (24) -
set
_ encoding (24) -
signing
_ key (12) - signm (12)
-
singleton
_ class (12) -
singleton
_ method (12) - source (12)
-
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
stand
_ alone? (24) - standalone (12)
-
static
_ path (12) - status (12)
-
status
_ line (12) -
status
_ string (12) - strftime (12)
- submit (24)
- summary (12)
-
summary
_ indent (12) - swapcase (18)
- swapcase! (9)
- system (12)
- tag (12)
- target (12)
- template (12)
-
template
_ dir (12) -
test
_ file (12) -
test
_ files (12) -
test
_ suite _ file (12) - text (12)
-
text
_ field (24) - textarea (24)
-
to
_ a (24) -
to
_ binary (10) -
to
_ csv (24) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ r (12) -
to
_ ruby (12) -
to
_ s (156) -
to
_ yaml (24) -
unmatched
_ alias _ lists (12) - unpack (12)
- upcase (18)
- upcase! (9)
-
user
_ agent (12) - value (36)
- ver (12)
- version (48)
-
with
_ config (24) -
write
_ nonblock (12) - xmlschema (12)
- yaml (12)
- zone (12)
検索結果
先頭5件
-
String
# partition(sep) -> [String , String , String] (52037.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] (52037.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
# ascii _ only? -> bool (45201.0) -
文字列がASCII文字のみで構成されている場合に true を返します。さもなくば false を返します。
...字列がASCII文字のみで構成されている場合に true を返します。さもなくば
false を返します。
例:
'abc123'.ascii_only? # => true
''.ascii_only? # => true
'日本語'.ascii_only? # => false
'日本語abc123'.ascii_only? # => false... -
String
# capitalize(*options) -> String (42563.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#downca......se, String#swapcase... -
String
# capitalize!(*options) -> self | nil (42361.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
# concat(other) -> self (42321.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 (42316.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!!!"
//}......"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
# downcase(*options) -> String (39611.0) -
全ての大文字を対応する小文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...ングに依存します。
@param options オプションの意味は以下の通りです。
: オプションなし
完全な Unicode ケースマッピングに対応し、ほとんどの言語に適しています。(例外は以下の :turkic,
:lithuanian オプションを参照)
Unic......ッピングは、現在サポートされていません。
: :ascii
ASCII の範囲内のみ (A-Z, a-z) が影響します。
このオプションは他のオプションと組み合わせることはできません。
: :turkic
チュルク語族 (トルコ語、アゼルバイジャン......ithuanian
現在は、ただの完全な Unicode ケースマッピングです。
将来、リトアニア語に対応した完全な Unicode ケースマッピングです。
(上にアクセントがあっても小文字の i のドットを維持します。)
: :fold
downcase と downca... -
String
# upcase(*options) -> String (39611.0) -
全ての小文字を対応する大文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...のエンコーディングに依存します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "stRIng? STring.".upcase # => "STRING? STRING."
//}
@see String#upcase!, String#downcase,
String#swapcase, String#capitalize... -
String
# kconv(out _ code , in _ code = Kconv :: AUTO) -> String (39603.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...