74件ヒット
[1-74件を表示]
(0.187秒)
種類
- インスタンスメソッド (46)
- モジュール関数 (22)
- 特異メソッド (6)
ライブラリ
- fileutils (22)
- pathname (11)
-
rubygems
/ dependency _ installer (11) - shell (30)
クラス
-
Gem
:: DependencyInstaller (11) - Pathname (11)
- Shell (30)
モジュール
- FileUtils (22)
キーワード
- cwd (6)
- dir (6)
-
find
_ gems _ with _ sources (11) - getwd (17)
- new (6)
検索結果
先頭5件
-
FileUtils
. # pwd -> String (24201.0) -
プロセスのカレントディレクトリを文字列で返します。
プロセスのカレントディレクトリを文字列で返します。 -
Shell
# pwd -> String (18201.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Gem
:: DependencyInstaller # find _ gems _ with _ sources(dep) -> Array (12106.0) -
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。
...与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを
返します。
Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ロ... -
FileUtils
. # getwd -> String (9101.0) -
プロセスのカレントディレクトリを文字列で返します。
プロセスのカレントディレクトリを文字列で返します。 -
Shell
# dir -> String (6101.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
. new(pwd = Dir . pwd , umask = nil) -> Shell (3436.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...ディレクトリをpwd で指定されたディレクトリとするShellオ
ブジェクトを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.pwd が使用されます。... -
Shell
# cwd -> String (3101.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# getwd -> String (3101.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (206.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.expand_path("../") # => #<Pathname:/path/testfile>
//}
@see File.expand_path...