るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

モジュール

キーワード

検索結果

<< 1 2 > >>

Rake::Application#rakefile -> String (24244.0)

実際に使用されている Rakefile の名前を返します。

...実際に使用されている Rakefile の名前を返します。

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

t
ask default: :test_rake_app
t
ask :test_rake_app do
Rake
.application.rakefile # => "Rakefile"
end
//}...

Rake::Application#options -> OpenStruct (18215.0)

コマンドラインで与えられたアプリケーションのオプションを返します。

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

t
ask default: :test_rake_app
t
ask :test_rake_app do
Rake
.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, load_system=fa...
...lse, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=8, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>
end
//}...

Rake::TaskManager#last_description=(description) (12315.0)

最新の詳細説明をセットします。

...t[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app1

desc "test1"
t
ask :test_rake_app1 do |task|
t
ask.application.last_description # => "test2"
t
ask.application.last_description = "test3"
t
ask.application.last_description # => "test3"
end

desc "test2"
t
ask :test_rake...
..._app2 do |task|
end
//}...

Rake::TaskManager#last_description -> String (9231.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...
Rakefile
内の最新の詳細説明を追跡するためのメソッドです。

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

t
ask default: :test_rake_app1

desc "test1"
t
ask :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end

desc "test2"
t
ask :test_rake_a...
...pp2 do |task|
end
//}...

Rake::Application#tty_output=(tty_output_state) (9215.0)

TTY に対する出力状態を上書きします。

...
T
TY に対する出力状態を上書きします。

大抵の場合、テストのために使用します。

@param tty_output_state 変更後の状態を指定します

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

t
ask default: :test_rake_app
t
ask :test_rake_app do
Rake
.applicatio...
...n.tty_output? # => false
Rake
.application.tty_output = "debug output" # => "debug output"
Rake
.application.tty_output? # => "debug output"
end
//}...

絞り込み条件を変える

Rake::Cloneable#clone -> object (9215.0)

自身を複製します。

...ています。

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

t
ask default: :test_rake_app
t
ask :test_rake_app do
file_list = FileList['a.c', 'b.c']
clone = file_list.clone
clone # => ["a.c", "b.c"]
clone.exclude("a.c")
clone == file_list # => false
end
//}...

Rake::Application#init(app_name = &#39;rake&#39;) (9115.0)

コマンドラインオプションとアプリケーション名を初期化します。

...ンドラインオプションとアプリケーション名を初期化します。

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

t
ask default: :test
t
ask :test

Rake
.application.name # => "rake"
Rake
.application.init("MyApp") # => ["default"]
Rake
.application.name # => "MyApp"
//}...

Rake::Application#top_level (9115.0)

Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。

...
Rake
アプリケーションに与えられたトップレベルのタスク
(コマンドラインで指定されたタスク) を実行します。

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

t
ask default: :test1
t
ask :test1
t
ask :test2 do
puts "test2"
end

# rake test2 で実行
R...
...ake.application.top_level

# => "test2"
//}...

Rake::Application#top_level_tasks -> Array (9115.0)

コマンドラインで指定されたタスクのリストを返します。

...コマンドラインで指定されたタスクのリストを返します。

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

t
ask default: :test_rake_app
t
ask :test_rake_app do
Rake
.application.top_level_tasks # => ["default"]
end
//}...
<< 1 2 > >>