ライブラリ
- ビルトイン (204)
-
cgi
/ core (24) - csv (48)
- open-uri (24)
- optparse (108)
- psych (48)
-
rake
/ testtask (12) -
rubygems
/ specification (12)
クラス
-
ARGF
. class (36) - Array (12)
- CGI (24)
-
CSV
:: Table (24) -
Gem
:: Specification (12) - Object (24)
- OptionParser (60)
-
Psych
:: Nodes :: Node (24) -
RDoc
:: Options (192) -
Rake
:: TestTask (12) - String (144)
- Symbol (36)
モジュール
-
Gem
:: InstallUpdateOptions (12) -
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (48)
キーワード
- capitalize (18)
- capitalize! (9)
- charset (12)
- css (12)
- downcase (18)
- downcase! (9)
- encode (36)
- encode! (24)
-
extra
_ accessor _ flags (12) - files (12)
- header (12)
- help (12)
-
image
_ format (12) -
install
_ update _ defaults _ str (12) -
main
_ page (12) - markup (12)
-
op
_ dir (12) -
op
_ name (12) - open (12)
- order! (24)
- out (12)
- parse! (12)
-
parse
_ csv (12) - permute! (12)
-
psych
_ to _ yaml (12) -
rdoc
_ include (12) - read (12)
-
set
_ encoding (36) -
static
_ path (12) - swapcase (18)
- swapcase! (9)
- template (12)
-
template
_ dir (12) - title (12)
- title= (12)
-
to
_ a (12) -
to
_ csv (24) -
to
_ s (24) -
to
_ yaml (24) - upcase (18)
- upcase! (9)
- ver (12)
- webcvs (12)
- yaml (12)
検索結果
先頭5件
-
String
# upcase!(*options) -> self | nil (9162.0) -
全ての小文字を対応する大文字に破壊的に置き換えます。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...ディングに依存します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
buf = "stRIng? STring."
buf.upcase!
p buf # => "STRING? STRING."
//}
@see String#upcase, String#downcase!,
String#swapcase!, String#capitalize!... -
String
# downcase!(*options) -> self | nil (9150.0) -
全ての大文字を対応する小文字に破壊的に置き換えます。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...@param options オプションの詳細は String#downcase を参照してください。
@return self を変更して返します。変更が無かった場合は nil を返します。
//emlist[例][ruby]{
str = "STRing?"
str.downcase!
p str # => "string?"
//}
@see String#downcase, String#upca......se!, String#swapcase!, String#capitalize!... -
String
# capitalize!(*options) -> self | nil (9138.0) -
文字列先頭の文字を大文字に、残りを小文字に破壊的に変更します。
...文字列先頭の文字を大文字に、残りを小文字に破壊的に変更します。
@param options オプションの詳細は String#downcase を参照してください。
@return capitalize! は self を変更して返しますが、
変更が起こらなかった場合は ni......l を返します。
//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
# swapcase!(*options) -> self | nil (9138.0) -
大文字を小文字に、小文字を大文字に破壊的に変更します。
...大文字を小文字に、小文字を大文字に破壊的に変更します。
@param options オプションの詳細は String#downcase を参照してください。
swapcase! は self を変更して返しますが、
置換が起こらなかった場合は nil を返します。
この......メソッドはマルチバイト文字を認識しません。
//emlist[例][ruby]{
str = "ABCxyz"
str.swapcase!
p str # => "abcXYZ"
//}
@see String#swapcase, String#upcase!, String#downcase!, String#capitalize!... -
String
# encode!(encoding , from _ encoding , options = nil) -> self (9109.0) -
self を指定したエンコーディングに変換し、自身を置き換えます。引数を2つ 与えた場合、第二引数は変換元のエンコーディングを意味します。さもなくば self のエンコーディングが使われます。変換後の self を返します。
...す。
@param from_encoding 変換元のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@return 変換後のself
//emlist[例][ruby]{
#coding:UTF-8
s = "いろは"
s.encode!("EUC-JP")
s.encode!(Encoding::UTF_8)
//}
@see String#encode... -
String
# encode!(encoding , options = nil) -> self (9109.0) -
self を指定したエンコーディングに変換し、自身を置き換えます。引数を2つ 与えた場合、第二引数は変換元のエンコーディングを意味します。さもなくば self のエンコーディングが使われます。変換後の self を返します。
...す。
@param from_encoding 変換元のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@return 変換後のself
//emlist[例][ruby]{
#coding:UTF-8
s = "いろは"
s.encode!("EUC-JP")
s.encode!(Encoding::UTF_8)
//}
@see String#encode... -
Gem
:: Specification # rdoc _ options -> [String] (6203.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。 -
RDoc
:: Options # extra _ accessor _ flags -> {String => String} (3203.0) -
コマンドライン引数の --accessor オプションで指定したアクセサがキー、ア クセサの種類が値のハッシュを返します。
コマンドライン引数の --accessor オプションで指定したアクセサがキー、ア
クセサの種類が値のハッシュを返します。
値は r、w、rw のいずれかです。それぞれ attr_reader、attr_writer、
attr_accessor に対応します。 -
RDoc
:: Options # title=(string) (3124.0) -
ドキュメントのタイトルがまだ設定されていない場合に string で指定した文 字列に設定します。
...トルがまだ設定されていない場合に string で指定した文
字列に設定します。
コマンドライン引数で既に --title オプションが指定されていた場合には、そ
ちらを優先します。
@param string 設定するタイトルを文字列で指定し... -
Gem
:: InstallUpdateOptions # install _ update _ defaults _ str -> String (3102.0) -
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers