204件ヒット
[1-100件を表示]
(0.095秒)
別のキーワード
クラス
-
Rake
:: Application (24) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (24) -
Rake
:: InvocationChain (24) -
Rake
:: TaskArguments (60)
モジュール
-
Rake
:: TaskManager (60)
キーワード
- [] (24)
- append (12)
- egrep (12)
-
excluded
_ from _ list? (12) -
in
_ namespace (12) - init (12)
- intern (12)
- load (12)
- lookup (12)
- member? (12)
- names (12)
-
new
_ scope (12) -
synthesize
_ file _ task (12) -
to
_ hash (12) -
with
_ defaults (12)
検索結果
先頭5件
-
Rake
:: Application # name -> String (21228.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
...アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (12405.0) -
パラメータにデフォルト値をセットします。
...す。
@param defaults デフォルト値として使用するキーと値を格納したハッシュを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1",......ents.to_hash # => {:name1=>"value1", :name2=>"value2"}
arguments.with_defaults({ default_key: "default_value"}) # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
arguments.to_hash # => {:default_......key=>"default_value", :name1=>"value1", :name2=>"value2"}
end
//}... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (9329.0) -
与えられた名前の名前空間でブロックを評価します。
...ックを評価します。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hog... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (9228.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...成します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タスクを合......。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_fil... -
Rake
:: TaskArguments # names -> Array (9145.0) -
パラメータ名のリストを返します。
...パラメータ名のリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.names # => ["name1", "name2"]
end
//}... -
Rake
:: Application # init(app _ name = & # 39;rake& # 39;) (6240.0) -
コマンドラインオプションとアプリケーション名を初期化します。
...ンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}... -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (6228.0) -
与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。
...am file_name ファイル名を指定します。
//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")
file_list.exclude("test1.rb")......file_list.excluded_from_list?("test1.rb") # => true
file_list.excluded_from_list?("test2.rb") # => false
end
//}... -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (6228.0) -
タスクを検索します。
...am task_class タスクのクラスを指定します。
@param task_name タスクの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.intern(Rake::Task, "test_rake_app") # => <Rake::Ta......sk test_rake_app => []>
task.application.intern(Rake::Task, "sample_task") # => <Rake::Task sample_task => []>
end
//}... -
Rake
:: TaskArguments # to _ hash -> Hash (6145.0) -
パラメータ名と対応する値を格納したハッシュを返します。
...納したハッシュを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
end
//}...