262件ヒット
[1-100件を表示]
(0.125秒)
ライブラリ
- English (22)
- ビルトイン (80)
- fileutils (55)
- pathname (11)
- rbconfig (11)
-
rubygems
/ installer (33) -
rubygems
/ uninstaller (11) - shell (6)
-
webrick
/ config (11) -
webrick
/ httpserver (11)
クラス
- Dir (22)
- File (36)
-
Gem
:: Installer (33) -
Gem
:: Uninstaller (11) - Pathname (11)
- Shell (6)
-
WEBrick
:: HTTPServer (11)
モジュール
- FileUtils (55)
- Kernel (44)
- RbConfig (11)
-
WEBrick
:: Config (11)
キーワード
-
$ ARGV (11) -
$ DEFAULT _ INPUT (11) - FileHandler (11)
-
absolute
_ path (11) -
cp
_ r (11) -
default
_ system _ path (6) - dirname (3)
-
gem
_ home (22) -
home
_ install _ warning (11) - install (11)
- irb (11)
-
ln
_ s (11) - load (11)
- mount (11)
- move (11)
- mv (11)
- realpath (11)
- require (11)
-
sub
_ ext (11) - symlink (11)
検索結果
先頭5件
-
Dir
. home -> String | nil (18332.0) -
現在のユーザまたは指定されたユーザのホームディレクトリを返します。
...れたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path......されたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path... -
Dir
. home(user) -> String | nil (18332.0) -
現在のユーザまたは指定されたユーザのホームディレクトリを返します。
...れたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path......されたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path... -
Gem
:: Installer . home _ install _ warning -> bool (15301.0) -
この値が真の場合、ホームディレクトリに Gem をインストールしようとすると警告を表示します。
この値が真の場合、ホームディレクトリに Gem をインストールしようとすると警告を表示します。 -
WEBrick
:: Config :: FileHandler -> Hash (12312.0) -
WEBrick::HTTPServlet::FileHandler の設定のデフォルト値を保持したハッシュです。
...TTPServlet::FileHandler の設定のデフォルト値を保持したハッシュです。
require 'webrick'
WEBrick::Config::FileHandler = {
:NondisclosureName => [".ht*", "*~"],
:FancyIndexing => false,
:HandlerTable => {},
:HandlerCallback => nil,......:DirectoryCallback => nil,
:FileCallback => nil,
:UserDir => nil, # e.g. "public_html"
:AcceptableLanguages => [] # ["en", "ja", ... ]
}
: :AcceptableLanguages
コンテンツの言語を選択するオプション。設定値は文字列の配列。
クラ......。値は文字列。
ユーザfooのホームディレクトリが/home/fooで、:UserDirにpublic_htmlを設定した場合、
クライアントから/~foo/index.htmlがリクエストされると/home/foo/public_html/index.htmlの内容を表示される。
この設定を有効にするには... -
Gem
:: Installer # install -> Gem :: Specification (9206.0) -
Gem をインストールします。
...トールします。
@gem_home/
cache/<gem-version>.gem #=> インストールした Gem のコピー
gems/<gem-version>/... #=> インストール時に展開したファイル
specifications/<gem-version>.gemspec #=> gemspec ファイル
@return ロ......@raise Gem::InstallError 要求された Ruby のバージョンを満たしていない場合に発生します。
@raise Gem::InstallError 要求された RubyGems のバージョンを満たしていない場合に発生します。
@raise Gem::InstallError Zlib::GzipFile::Error が発生し... -
Gem
:: Installer # gem _ home -> String (9201.0) -
Gem のインストール先を返します。
Gem のインストール先を返します。 -
Gem
:: Uninstaller # gem _ home -> String (9201.0) -
Gem がインストールされているディレクトリを返します。
Gem がインストールされているディレクトリを返します。 -
File
. absolute _ path(file _ name , dir _ string=nil) -> String (6236.0) -
file_name を絶対パスに変換した文字列を返します。
...file_name を絶対パスに変換した文字列を返します。
相対パスの場合はカレントディレクトリを基準とします。
dir_string を渡した場合はそのディレクトリを基準とします。
File.expand_path と異なり、 file_name 先頭が "~" である場....../emlist[例][ruby]{
p Dir.getwd #=> "/home/matz/work/bar"
p ENV["HOME"] #=> "/home/matz"
p File.absolute_path("..") #=> "/home/matz/work"
p File.absolute_path("..", "/tmp") #=> "/"
p File.absolute_path("~") #=> "/home/matz/work/bar/~"
p File.a......bsolute_path("~foo") #=> "/home/matz/work/bar/~foo"
//}
@see File.expand_path... -
File
. realpath(pathname , basedir = nil) -> String (6224.0) -
与えられた pathname に対応する絶対パスを返します。
...合に発生します。
//emlist[例][ruby]{
ENV["HOME"] # => "/home/matz"
File.symlink("testfile", "testlink")
File.realpath("testfile") # => "/home/matz/testfile"
File.realpath("testlink") # => "/home/matz/testfile"
File.realpath("..", "/tmp") # => "/"
//}... -
Kernel
. # load(file , priv = false) -> true (6212.0) -
Ruby プログラム file をロードして実行します。再ロード可能です。
...Ruby プログラム file をロードして実行します。再ロード可能です。
file が絶対パスのときは file からロードします。
file が相対パスのときは組み込み変数 $:
に示されるパスとカレントディレクトリを順番に探し、最初に見......先頭文字が
`~' (チルダ) だと、環境変数 HOME の値に展開されます。
また `~USER' はそのユーザのホームディレクトリに展開されます。
ロードに成功した場合は true を返します。
@param file ファイル名の文字列です。
@param priv......名前空間を汚染しません。
@raise LoadError ロードに失敗した場合に発生します。
@see Kernel.#require
=== require と load の違い
Kernel.#require は同じファイルは一度だけしかロードしませんが、
Kernel.#load は無条件にロードします。
ま...