るりまサーチ

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

別のキーワード

  1. httpstatus rc_see_other
  2. webrick/httpstatus rc_see_other
  3. rc_see_other webrick/httpstatus
  4. rc_see_other webrick::httpstatus

モジュール

キーワード

検索結果

<< 1 2 > >>

FileUtils#ruby(*args) {|result, status| ... } (9.0)

与えられた引数で Ruby インタプリタを実行します。

...与えられた引数で Ruby インタプリタを実行します。

@param args Ruby インタプリタに与える引数を指定します。

例:
ruby %{-pe '$_.upcase!' <README}

@see Kernel.#sh...

FileUtils#safe_ln(*args) (9.0)

安全にリンクを作成します。

...安全にリンクを作成します。

リンクの作成に失敗した場合はファイルをコピーします。

@param args FileUtils.#cp, FileUtils.#ln に渡す引数を指定します。

@see FileUtils.#cp, FileUtils.#ln...

FileUtils#sh(*cmd) {|result, status| ... } (9.0)

与えられたコマンドを実行します。

...参照してください。


例:
sh %{ls -ltr}

sh 'ls', 'file with spaces'

# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end

@see Kernel.#exec, Kernel.#system...

Kernel#file(*args) { ... } -> Rake::FileTask (9.0)

ファイルタスクを定義します。

...ル名を指定します。

例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end
end
end

@see Rake::Task.define_task...

Kernel#namespace(name = nil) { ... } -> Rake::NameSpace (9.0)

新しい名前空間を作成します。

...新しい名前空間を作成します。

与えられたブロックを評価する間は、その名前空間を使用します。

例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.

@see Rake::TaskManager#in_namespace...

絞り込み条件を変える

Kernel#task(*args) { ... } -> Rake::Task (9.0)

Rake タスクを定義します。

...
Rake
タスクを定義します。

@param args タスク名と依存タスクを指定します。

例:
task :clobber => [:clean] do
rm_rf "html"
end

@see Rake::Task.define_task...

Rake::FileCreationTask#needed? -> bool (9.0)

ファイルが存在しない場合、真を返します。 そうでない場合は、偽を返します。

...ファイルが存在しない場合、真を返します。
そうでない場合は、偽を返します。


@see [[FileTask#needed?]]...

Rake::FileCreationTask#timestamp -> Rake::EarlyTime (9.0)

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。

...どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。


@see [[FileTask#timestamp]]...

Rake::FileList#*(other) -> Array | String (9.0)

Array#* と動作を合わせるために再定義しています。

...Array#* と動作を合わせるために再定義しています。


@see Array#*...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (9.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...各要素に String#ext を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb"...
..., "test3.rb")
file_list.ext(".erb") # => ["test1.erb", "test2.erb", "test3.erb"]
end
//}

@see String#ext...

絞り込み条件を変える

<< 1 2 > >>