2160件ヒット
[1-100件を表示]
(0.097秒)
ライブラリ
- ビルトイン (1002)
-
cgi
/ session (11) - csv (88)
- digest (11)
- irb (11)
-
irb
/ input-method (11) -
irb
/ magic-file (22) -
net
/ http (77) -
net
/ pop (22) - open-uri (22)
- pathname (55)
- rake (33)
-
rdoc
/ markup / to _ html _ crossref (11) -
rexml
/ document (33) -
rubygems
/ defaults (11) -
rubygems
/ ext / builder (11) -
rubygems
/ ext / configure _ builder (11) -
rubygems
/ ext / ext _ conf _ builder (11) -
rubygems
/ ext / rake _ builder (11) -
rubygems
/ format (33) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ installer (22) -
rubygems
/ old _ format (33) -
rubygems
/ security (22) -
rubygems
/ source _ index (11) -
rubygems
/ specification (11) - shell (30)
-
shell
/ command-processor (6) - socket (176)
- tempfile (55)
- uri (198)
-
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htgroup (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httpserver (11) -
webrick
/ httpservlet / filehandler (11)
クラス
- Addrinfo (11)
-
CGI
:: Cookie (11) -
CGI
:: Session (11) - CSV (88)
-
Digest
:: Base (11) - Dir (303)
-
Encoding
:: Converter (44) - File (440)
-
File
:: Stat (11) -
Gem
:: Ext :: Builder (11) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: Format (33) -
Gem
:: GemPathSearcher (11) -
Gem
:: Installer (22) -
Gem
:: OldFormat (33) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (11) -
Gem
:: Specification (11) - IO (151)
-
IRB
:: FileInputMethod (11) -
Net
:: HTTP (66) -
Net
:: HTTPRequest (11) -
Net
:: POP3 (22) - Pathname (55)
-
RDoc
:: Markup :: ToHtmlCrossref (11) -
REXML
:: XPath (33) - RubyVM (1)
-
RubyVM
:: InstructionSequence (33) - Shell (30)
-
Shell
:: CommandProcessor (6) - Socket (77)
- Tempfile (55)
- UNIXServer (44)
- UNIXSocket (44)
-
URI
:: FTP (44) -
URI
:: Generic (66) -
URI
:: HTTP (33) -
URI
:: LDAP (11) -
URI
:: MailTo (11) -
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htgroup (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPServer (11) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11)
モジュール
- Gem (11)
-
Gem
:: Security (11) - IRB (11)
- OpenURI (22)
- Rake (33)
-
RubyVM
:: AbstractSyntaxTree (8) - URI (33)
オブジェクト
- ENV (11)
-
IRB
:: MagicFile (22)
キーワード
- [] (11)
-
absolute
_ path (11) -
absolute
_ path? (5) - application (11)
- application= (11)
-
attribute
_ alias _ singular (11) - binread (11)
- binwrite (11)
- blockdev? (11)
- build (99)
- build2 (22)
- cd (6)
- certs (11)
- chardev? (11)
- chdir (44)
- children (14)
- chroot (11)
- compile (11)
-
compile
_ file (11) - component (11)
- create (22)
-
def
_ system _ command (12) -
default
_ path (11) -
default
_ system _ path (6) -
default
_ system _ path= (6) - delete (11)
- directory? (11)
- each (11)
-
each
_ child (28) - empty? (16)
-
enable
_ ssl (11) - entries (22)
- executable? (11)
-
executable
_ real? (11) - exist? (11)
- exists? (9)
- file (11)
- file? (11)
- first (11)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (2) - foreach (77)
-
from
_ file _ by _ path (22) -
from
_ io (22) - get (22)
-
get
_ print (22) -
get
_ response (22) - getwd (11)
- glob (22)
- grpowned? (11)
- home (22)
-
install
_ system _ commands (6) -
installed
_ spec _ directories (11) - join (22)
- make (11)
- match (11)
- mkdir (11)
- new (354)
- new2 (11)
- open (202)
-
open
_ uri (22) -
original
_ dir (11) - owned? (11)
-
pack
_ sockaddr _ un (11) - parse (22)
-
parse
_ file (8) -
path
_ warning (11) -
path
_ warning= (11) - pipe? (11)
- pwd (11)
- read (44)
- readable? (11)
-
readable
_ real? (11) - readlines (44)
- readlink (11)
- realdirpath (11)
- realpath (11)
-
resolve
_ feature _ path (1) - rmdir (11)
-
search
_ convpath (11) - setgid? (11)
- setuid? (11)
- size (11)
- size? (11)
-
sockaddr
_ un (11) - socket? (11)
- split (22)
- start (11)
- sticky? (11)
- symlink? (11)
- sysopen (11)
- table (11)
- truncate (11)
-
trusted
_ cert _ path (11) - unix (33)
-
unix
_ server _ loop (11) -
unix
_ server _ socket (22) - unlink (11)
-
verify
_ trust _ dir (11) -
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (22)
- zero? (11)
検索結果
先頭5件
-
File
. path(filename) -> String (18178.0) -
指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。
...は、to_path メソッドを呼びます。
@param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
class MyPath
def initialize(path)
@path = path
end
def to_path
File.......absolute_path(@path)
end
end
File.path("/dev/null") # => "/dev/null"
File.path(Pathname("/tmp")) # => "/tmp"
File.path(MyPath.new(".")) # => "/Users/user/projects/txt"
//}... -
File
. expand _ path(path , default _ dir = & # 39; . & # 39;) -> String (6271.0) -
path を絶対パスに展開した文字列を返します。 path が相対パスであれば default_dir を基準にします。
...
path を絶対パスに展開した文字列を返します。
path が相対パスであれば default_dir を基準にします。
先頭の ~ はホームディレクトリ(環境変数 HOME が使われます)に、
~USER はそのユーザのホームディレクトリに展開されます。......"
p File.expand_path("..") #=> "/home/matz/work"
p File.expand_path("..", "/tmp") #=> "/"
p File.expand_path("~") #=> "/home/matz"
p File.expand_path("~foo") #=> "/home/foo"
//}
@param path パスを表す文字列を指定します。
@param default_dir path が相対パス... -
Shell
. default _ system _ path=(path) (6228.0) -
Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。
...る対象のパスを設定および、参照します。
@param path Shellでもちいられるコマンドを検索する対象のパスを文字列で指定します。
動作例
require 'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/......bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"... -
Gem
:: Format . from _ file _ by _ path(file _ path , security _ policy = nil) -> Gem :: Format (6209.0) -
@todo security_policy
...@todo security_policy
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。
@param security_policy ???... -
Gem
:: OldFormat . from _ file _ by _ path(file _ path) -> Gem :: OldFormat (6209.0) -
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
...Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。... -
File
. realdirpath(pathname , basedir = nil) -> String (6201.0) -
与えられた pathname に対応する絶対パスを返します。
...与えられた pathname に対応する絶対パスを返します。
pathname の最後のコンポーネントは存在していなくても例外は発生しません。
@param pathname ファイル名を指定します。
@param basedir ベースディレクトリを指定します。省略... -
File
. realpath(pathname , basedir = nil) -> String (6201.0) -
与えられた pathname に対応する絶対パスを返します。
...与えられた pathname に対応する絶対パスを返します。
pathname の全てのコンポーネントは存在しなければなりません。
@param pathname ファイル名を指定します。
@param basedir ベースディレクトリを指定します。省略するとカレン......合に発生します。
//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") # => "/"
//}... -
File
. absolute _ path?(file _ name) -> bool (6150.0) -
file_name が絶対パスなら true を、そうでなければ false を返します。
...合は、to_path メソッド、to_str メソッドの順で暗黙の型変換が試みられます。
@raise TypeError 引数に文字列以外の(暗黙の型変換が行えない)オブジェクトを指定した場合に発生します。
//emlist[例][ruby]{
File.absolute_path?("//foo/bar......\\baz") # => true
File.absolute_path?("C:foo\\bar") # => false
File.absolute_path?("~") # => false
# プラットフォームが cygwin、mswin、mingw の場合
File.absolute_path?("C:\\foo\\bar") # => true
File.absolute_path?("/foo/bar\\baz") # => false
# プラットフォ......ームが上記以外の場合
File.absolute_path?("C:\\foo\\bar") # => false
File.absolute_path?("/foo/bar\\baz") # => true
//}... -
File
. absolute _ path(file _ name , dir _ string=nil) -> String (6138.0) -
file_name を絶対パスに変換した文字列を返します。
...レントディレクトリを基準とします。
dir_string を渡した場合はそのディレクトリを基準とします。
File.expand_path と異なり、 file_name 先頭が "~" である場合
それは展開されません。普通のディレクトリ名として処理されます。......ME"] #=> "/home/matz"
p File.absolute_path("..") #=> "/home/matz/work"
p File.absolute_path("..", "/tmp") #=> "/"
p File.absolute_path("~") #=> "/home/matz/work/bar/~"
p File.absolute_path("~foo") #=> "/home/matz/work/bar/~foo"
//}
@see File.expand_path......OME"] #=> "/home/matz"
p File.absolute_path("..") #=> "/home/matz/work"
p File.absolute_path("..", "/tmp") #=> "/"
p File.absolute_path("~") #=> "/home/matz/work/bar/~"
p File.absolute_path("~foo") #=> "/home/matz/work/bar/~foo"
//}
@see File.expand_path... -
Shell
. default _ system _ path -> Array (6128.0) -
Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。
...る対象のパスを設定および、参照します。
@param path Shellでもちいられるコマンドを検索する対象のパスを文字列で指定します。
動作例
require 'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/......bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"... -
Gem
:: Installer . path _ warning=(flag) (6124.0) -
Gem.bindir が PATH に含まれていない場合に警告を表示するかどうかセットします。
...Gem.bindir が PATH に含まれていない場合に警告を表示するかどうかセットします。
@param flag 真を指定すると、Gem.bindir が PATH に含まれていない場合に警
告を表示するようになります。...