276件ヒット
[101-200件を表示]
(0.087秒)
別のキーワード
ライブラリ
- ビルトイン (108)
- pathname (36)
- rake (36)
-
rake
/ packagetask (96)
モジュール
-
Rake
:: TaskManager (36)
キーワード
- binding (12)
- delete (12)
-
in
_ namespace (12) - intern (12)
- name (12)
-
need
_ tar (12) -
need
_ tar _ bz2 (12) -
need
_ tar _ gz (12) -
need
_ zip (12) -
package
_ dir (12) -
package
_ dir _ path (12) -
package
_ files (12) - rand (36)
-
respond
_ to _ missing? (12) - split (12)
-
synthesize
_ file _ task (12) - unlink (12)
検索結果
先頭5件
-
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (131.0) -
与えられたタスク名をもとにファイルタスクを合成します。
.../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_file => [... -
Rake
:: PackageTask # package _ dir _ path -> String (125.0) -
パッケージに含むファイルを配置するディレクトリを返します。
...パッケージに含むファイルを配置するディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir_path # => "pkg/sample-1.0.0"
end
//}... -
Pathname
# split -> Array (119.0) -
File.split(self.to_s) と同じです。
...File.split(self.to_s) と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.split # => [#<Pathname:/path/to>, #<Pathname:sample>]
//}
@see File.split... -
Proc
# binding -> Binding (119.0) -
Proc オブジェクトが保持するコンテキストを Binding オブジェクトで返します。
...Proc オブジェクトが保持するコンテキストを
Binding オブジェクトで返します。
//emlist[例][ruby]{
def fred(param)
proc {}
end
sample_proc = fred(99)
eval("param", sample_proc.binding) # => 99
//}... -
Rake
:: PackageTask # name -> String (119.0) -
バージョン情報を含まないパッケージの名前を返します。
...バージョン情報を含まないパッケージの名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.name # => "sample"
end
//}... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (119.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 # => "hoge"
end
end
//}... -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (119.0) -
タスクを検索します。
...//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.intern(Rake::Task, "test_rake_app") # => <Rake::Task test_rake_app => []>
task.application.intern(Rake::Task, "sample_task") # => <Rake::Task sample_task => []>... -
Pathname
# delete -> Integer (113.0) -
self が指すディレクトリあるいはファイルを削除します。
...self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}... -
Pathname
# unlink -> Integer (113.0) -
self が指すディレクトリあるいはファイルを削除します。
...self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}...