6件ヒット
[1-6件を表示]
(0.195秒)
ライブラリ
- pathname (1)
-
rubygems
/ dependency _ installer (1) - shell (4)
クラス
-
Gem
:: DependencyInstaller (1) - Pathname (1)
- Shell (4)
キーワード
- cwd (1)
- dir (1)
-
find
_ gems _ with _ sources (1) - getwd (1)
検索結果
先頭5件
-
Shell
# pwd -> String (54607.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Gem
:: DependencyInstaller # find _ gems _ with _ sources(dep) -> Array (27322.0) -
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを
返します。
Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ローカルの Gem も先にきます。
@param dep Gem::Dependency のインスタンスを指定します。 -
Shell
# dir -> String (18307.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Shell
# cwd -> String (9307.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Shell
# getwd -> String (9307.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (622.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...