4505件ヒット
[1-100件を表示]
(0.044秒)
別のキーワード
種類
- 特異メソッド (2194)
- インスタンスメソッド (2023)
- モジュール関数 (288)
ライブラリ
- ビルトイン (1330)
-
cgi
/ session (12) - csv (108)
- digest (24)
- etc (24)
- fileutils (60)
- irb (12)
-
irb
/ cmd / load (24) -
irb
/ input-method (12) -
irb
/ magic-file (24) -
json
/ add / exception (12) - mkmf (96)
-
net
/ ftp (30) -
net
/ http (576) -
net
/ pop (24) - open-uri (24)
- openssl (48)
- optparse (12)
- pathname (433)
- rake (60)
-
rake
/ testtask (12) -
rdoc
/ markup / to _ html _ crossref (12) -
rexml
/ document (144) - rubygems (12)
-
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ commands / which _ command (24) -
rubygems
/ custom _ require (12) -
rubygems
/ ext / builder (12) -
rubygems
/ ext / configure _ builder (12) -
rubygems
/ ext / ext _ conf _ builder (12) -
rubygems
/ ext / rake _ builder (12) -
rubygems
/ format (48) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ indexer (12) -
rubygems
/ installer (12) -
rubygems
/ old _ format (48) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ security (24) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (72) -
rubygems
/ uninstaller (12) -
rubygems
/ validator (12) - shell (120)
-
shell
/ command-processor (60) -
shell
/ filter (48) - socket (216)
- tempfile (72)
- uri (228)
-
webrick
/ httpauth / htdigest (24) -
webrick
/ httpauth / htgroup (24) -
webrick
/ httpauth / htpasswd (24) -
webrick
/ httprequest (12) -
webrick
/ httpserver (24) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httputils (12)
クラス
- Addrinfo (36)
-
CGI
:: Cookie (24) -
CGI
:: Session (12) - CSV (108)
-
Digest
:: Base (24) - Dir (309)
-
Encoding
:: Converter (48) - Exception (24)
- File (459)
-
File
:: Stat (24) -
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Commands :: WhichCommand (24) -
Gem
:: Ext :: Builder (12) -
Gem
:: Ext :: ConfigureBuilder (12) -
Gem
:: Ext :: ExtConfBuilder (12) -
Gem
:: Ext :: RakeBuilder (12) -
Gem
:: Format (48) -
Gem
:: GemPathSearcher (24) -
Gem
:: Indexer (12) -
Gem
:: Installer (12) -
Gem
:: OldFormat (48) -
Gem
:: RemoteFetcher (36) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (72) -
Gem
:: Uninstaller (12) -
Gem
:: Validator (12) - IO (204)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) -
IRB
:: FileInputMethod (12) -
Net
:: FTP (30) -
Net
:: HTTP (516) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (24) -
Net
:: POP3 (24) -
OpenSSL
:: SSL :: SSLContext (36) -
OpenSSL
:: X509 :: Store (12) - OptionParser (12)
- Pathname (421)
-
RDoc
:: Markup :: ToHtmlCrossref (12) -
RDoc
:: Options (12) -
REXML
:: Element (48) -
REXML
:: Elements (60) -
REXML
:: XPath (36) -
Rake
:: DefaultLoader (12) -
Rake
:: TestTask (12) -
RubyVM
:: InstructionSequence (36) - Shell (120)
-
Shell
:: CommandProcessor (60) -
Shell
:: Filter (48) - Socket (84)
- String (12)
- Tempfile (72)
- Thread (24)
- UNIXServer (48)
- UNIXSocket (48)
-
URI
:: FTP (48) -
URI
:: Generic (84) -
URI
:: HTTP (36) -
URI
:: LDAP (12) -
URI
:: MailTo (12) -
WEBrick
:: Cookie (48) -
WEBrick
:: HTTPAuth :: Htdigest (24) -
WEBrick
:: HTTPAuth :: Htgroup (24) -
WEBrick
:: HTTPAuth :: Htpasswd (24) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (12)
モジュール
- Etc (12)
- FileTest (24)
- FileUtils (72)
-
Gem
:: Security (12) - IRB (12)
- Kernel (312)
- OpenURI (24)
- Rake (12)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10) - URI (36)
-
WEBrick
:: HTTPUtils (12)
オブジェクト
- ENV (12)
-
IRB
:: MagicFile (24)
キーワード
- + (12)
-
/ (11) - <=> (24)
- == (12)
- === (12)
- Pathname (12)
- [] (12)
-
absolute
_ path? (6) -
add
_ path (12) - application= (12)
-
attribute
_ alias _ singular (12) -
backtrace
_ locations (24) - basename (12)
- binwrite (12)
- blockdev? (12)
-
body
_ stream (12) -
body
_ stream= (12) - build (108)
- build2 (24)
-
ca
_ file= (12) -
ca
_ path= (24) -
caller
_ locations (24) - cd (12)
-
cert
_ store= (12) - chardev? (12)
- chdir (54)
- children (28)
- chmod (12)
- chown (12)
- chroot (12)
- cleanpath (12)
- close (12)
- collect (12)
- compile (12)
-
compile
_ file (12) - confstr (12)
- copy (12)
- create (24)
-
create
_ makefile (12) -
create
_ rule (12) -
def
_ system _ command (12) -
default
_ system _ path (6) -
default
_ system _ path= (6) - delete (24)
-
delete
_ all (12) -
dir
_ config (12) - directory? (12)
- each (24)
-
each
_ child (56) -
each
_ element (12) - empty? (18)
-
enable
_ ssl (24) - entries (24)
- eql? (12)
-
escape
_ path (12) - exec (48)
- executable? (12)
-
executable
_ real? (12) - execute (24)
- exist? (12)
- extensions= (12)
-
extra
_ rdoc _ files= (12) -
family
_ addrinfo (24) -
fetch
_ path (12) - file (24)
- file? (12)
- find (22)
-
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ paths (12) - first (12)
- flush (36)
- fnmatch (24)
- fnmatch? (24)
-
for
_ fd (3) - foreach (114)
-
from
_ file _ by _ path (24) -
from
_ io (24) - gem (12)
-
gem
_ path= (24) -
gem
_ paths (12) - get (48)
- get2 (24)
-
get
_ elements (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) -
get
_ print (24) -
get
_ response (24) -
get
_ text (12) - glob (40)
- grpowned? (12)
- head (12)
- head2 (24)
- inject (12)
-
install
_ system _ commands (6) - join (36)
- lchmod (12)
- lchown (12)
- libpathflag (12)
- libs= (12)
-
link
_ command (12) - load (12)
-
loaded
_ from= (12) - lock (12)
- make (12)
- match (12)
-
matching
_ file? (12) -
matching
_ files (12) - mkcol (12)
- mkdir (30)
- mkpath (12)
- mlsd (20)
- mlst (10)
- move (12)
- new (375)
- new2 (12)
- open (240)
-
open
_ uri (24) -
open
_ uri _ or _ path (12) - owned? (12)
-
pack
_ sockaddr _ un (12) - paranoid (12)
- parse (24)
-
parse
_ file (10) - patch (24)
- path= (36)
-
path
_ info= (12) -
path
_ ok? (12) -
path
_ warning= (12) - pathconf (12)
-
pathmap
_ replace (12) - pipe? (12)
- post (24)
- post2 (24)
-
program
_ name= (12) - propfind (12)
- proppatch (12)
- pushd (6)
- pushdir (6)
- put (12)
- put2 (24)
- read (48)
-
read
_ body (24) - readable? (12)
-
readable
_ real? (12) - readlines (48)
- readlink (30)
- realdirpath (24)
- realpath (36)
-
relative
_ path _ from (12) -
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - rename (12)
- reopen (36)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - require (12)
-
require
_ path= (12) -
require
_ paths= (12) -
require
_ relative (12) - rmdir (30)
- scan (12)
-
search
_ convpath (12) - select (12)
-
send
_ request (12) -
set
_ backtrace (12) -
set
_ params (12) - setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
-
sockaddr
_ un (12) - socket? (12)
- spawn (48)
-
spec
_ path (12) - split (42)
-
split
_ all (12) - start (12)
-
static
_ path= (12) - sticky? (12)
- sub (24)
-
sub
_ ext (12) - symlink? (12)
- sysopen (12)
- system (48)
-
system
_ path (6) -
system
_ path= (6) - table (12)
- text (12)
-
to
_ a (12) -
to
_ json (12) - trace (12)
- truncate (42)
-
trusted
_ cert _ path (12) -
try
_ file (12) - unix (36)
-
unix
_ server _ loop (12) -
unix
_ server _ socket (24) - unlink (30)
- unlock (12)
- utime (12)
-
verify
_ gem _ file (12) -
verify
_ trust _ dir (12) -
world
_ readable? (24) -
world
_ writable? (24) - writable? (12)
-
writable
_ real? (12) - write (24)
- zero? (12)
検索結果
先頭5件
-
File
. path(filename) -> String (18183.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"
//}... -
WEBrick
:: Cookie # path -> String (18108.0) -
パス名を文字列で表すアクセサです。
...パス名を文字列で表すアクセサです。
@param value パス名を文字列で指定します。... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (9277.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... -
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (9242.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
cleanpath は、実際にファイルシステムを参照することなく、文字列操作
だけで処理を行います。
@param consider_symlink 真ならパス要素にシンボリック......問題ないように .. を残します。
//emlist[例][ruby]{
require "pathname"
path = Pathname.new("//.././../")
path # => #<Pathname://.././../>
path.cleanpath # => #<Pathname:/>
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") res......cue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
path.cleanpath # => #<Pathname:bar/bar>
path.cleanpath(true) # => #<Pathname:bar/foo/../bar>
//}... -
Pathname
# realdirpath(basedir = nil) -> Pathname (9236.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......me"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT......//}
@see Pathname#realpath... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (9225.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory......から self への相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Pathname
# realpath -> Pathname (9218.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
... Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param b......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# realpath(basedir = nil) -> Pathname (9218.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
... Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param b......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Kernel
# libpathflag(libpath = $ DEFLIBPATH| $ LIBPATH) -> String (6406.0) -
与えられた libpath を -L 付きの文字列に変換して返します。
...与えられた libpath を -L 付きの文字列に変換して返します。
@param libpath LIBPATH に指定する値を指定します。...