44件ヒット
[1-44件を表示]
(0.071秒)
ライブラリ
- rake (22)
-
rubygems
/ old _ format (11) -
rubygems
/ require _ paths _ builder (11)
クラス
-
Gem
:: OldFormat (11) -
Rake
:: FileList (11) - String (11)
モジュール
キーワード
- pathmap (22)
-
write
_ require _ paths _ file _ if _ needed (11)
検索結果
先頭4件
-
Gem
:: OldFormat # spec=(spec) (21100.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (6101.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。 -
Rake
:: FileList # pathmap(spec = nil) -> Rake :: FileList (3101.0) -
各要素に String#pathmap を適用した新しい Rake::FileList を返します。
...String#pathmap を適用した新しい Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.pathmap("%n") # => ["test1", "test2", "test... -
String
# pathmap(spec = nil) { . . . } -> String (101.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...セント自身を表します。
%d は数値のプレフィクスを取ることができます。
例:
'a/b/c/d/file.txt'.pathmap("%2d") # => 'a/b'
'a/b/c/d/file.txt'.pathmap("%-2d") # => 'c/d'
また、%d, %p, %f, %n, %x, %X には単純な文字列置換を行うための
置換パ......弧でくくります。
置換指定は、% と指示子の間に置きます。(例: "%{old,new}d")
複数の置換を行う場合はパターンをセミコロンで区切ってください。
(例: "%{old,new;src,bin}d")
正規表現や後方参照をパターンとして使用することが......athmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。
例:
"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/path/to/file.txt"...