るりまサーチ

最速Rubyリファレンスマニュアル検索!
72件ヒット [1-72件を表示] (0.224秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. bigdecimal to_r

検索結果

Gem::Format#spec=(spec) (21101.0)

Gem の Gem::Specification をセットします。

...Gem の Gem::Specification をセットします。

@param spec Gem の Gem::Specification をセットします。...

Gem::OldFormat#spec=(spec) (21101.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) (15102.0)

必要であれば、'.require_paths' というファイルを Gem ごとに作成します。

...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。...

Rake::GemPackageTask#gem_spec=(gem_spec) (9101.0)

gemspec をセットします。

...gemspec をセットします。

@param gem_spec Gem::Specification のインスタンスを指定します。...

Rake::FileList#pathmap(spec = nil) -> Rake::FileList (3102.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", "test3"]
end
//}

@see String#pathmap...

絞り込み条件を変える

String#pathmap(spec = nil) { ... } -> String (3102.0)

与えられた書式指定文字列に応じてパス(自身)を変換します。

...old,new;src,bin}d")

正規表現や後方参照をパターンとして使用することがあるかもしれません。
中括弧、コンマ、セミコロンはパターンと置換文字列に使用しないでください。

例:
"src/org/onestepback/proj/A.java".pathmap("%{^src,bin}X.c...
...lass")
#=> "bin/org/onestepback/proj/A.class"

置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。

例:

"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/path/to/file.txt"...