608件ヒット
[601-608件を表示]
(0.162秒)
ライブラリ
クラス
- Array (12)
- DBM (12)
-
Encoding
:: Converter (24) - GDBM (12)
- Hash (64)
- Method (12)
- Object (12)
- Pathname (36)
-
REXML
:: Child (12) -
REXML
:: Parent (12) -
Rake
:: FileList (48) - SDBM (12)
- Set (12)
- String (276)
- StringScanner (12)
- UnboundMethod (12)
-
YAML
:: DBM (12)
モジュール
- Kernel (16)
キーワード
- arity (24)
- encode (36)
- freeze (12)
- gsub (60)
- gsub! (60)
- merge (24)
- merge! (14)
-
pathmap
_ replace (12) -
replace
_ child (12) -
replace
_ with (12) - replacement (12)
- replacement= (12)
- string (12)
- sub (72)
- sub! (48)
-
sub
_ ext (12) - timeout (16)
- tr (12)
- tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - update (14)
検索結果
-
Pathname
# sub(pattern) {|matched| . . . } -> Pathname (3208.0) -
self を表現するパス文字列に対して sub メソッドを呼び出し、その結果を内 容とする新しい Pathname オブジェクトを生成し、返します。
...Pathname オブジェクトを生成し、返します。
@param pattern 置き換える文字列のパターンを指定します。
@param replace pattern で指定した文字列と置き換える文字列を指定します。
//emlist[例][ruby]{
require 'pathname'
path1 = Pathname('/usr/bi......n/perl')
path1.sub('perl', 'ruby') #=> #<Pathname:/usr/bin/ruby>
//}
@see String#sub...