2件ヒット
[1-2件を表示]
(0.159秒)
別のキーワード
クラス
- Pathname (1)
-
Rake
:: FileList (1)
検索結果
-
Rake
:: FileList # to _ s -> String (63343.0) -
全ての要素をスペースで連結した文字列を返します。
全ての要素をスペースで連結した文字列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_s # => "a.c b.c"
end
//} -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (691.0) -
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
@param default_dir self が相対パスであれば default_dir を基準に展開されます。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_path # => #<Pathname:/path/to/testfile>
path.e...