種類
ライブラリ
- ビルトイン (1727)
-
cgi
/ core (36) -
cgi
/ session (12) - csv (144)
- digest (24)
- etc (672)
- fileutils (60)
- irb (12)
-
irb
/ cmd / load (24) -
irb
/ context (36) -
irb
/ input-method (12) -
irb
/ magic-file (24) -
json
/ add / exception (12) - logger (12)
- mkmf (96)
-
net
/ ftp (40) -
net
/ http (612) -
net
/ pop (36) - open-uri (24)
- openssl (156)
- optparse (24)
- pathname (1346)
- pstore (12)
- rake (144)
-
rake
/ packagetask (12) -
rake
/ testtask (24) -
rdoc
/ markup / to _ html _ crossref (12) -
rexml
/ document (192) - rss (24)
- rubygems (96)
-
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ commands / which _ command (24) -
rubygems
/ config _ file (24) -
rubygems
/ custom _ require (12) -
rubygems
/ defaults (12) -
rubygems
/ ext / builder (12) -
rubygems
/ ext / configure _ builder (12) -
rubygems
/ ext / ext _ conf _ builder (12) -
rubygems
/ ext / rake _ builder (12) -
rubygems
/ format (60) -
rubygems
/ gem _ path _ searcher (96) -
rubygems
/ indexer (12) -
rubygems
/ installer (24) -
rubygems
/ old _ format (60) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ require _ paths _ builder (24) -
rubygems
/ security (24) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (120) -
rubygems
/ uninstaller (12) -
rubygems
/ validator (36) - shell (120)
-
shell
/ command-processor (60) -
shell
/ filter (48) - socket (360)
- tempfile (120)
- uri (276)
-
webrick
/ httpauth / htdigest (24) -
webrick
/ httpauth / htgroup (24) -
webrick
/ httpauth / htpasswd (24) -
webrick
/ httprequest (36) -
webrick
/ httpserver (24) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httputils (12) -
webrick
/ ssl (12) -
win32
/ resolv (12) - win32ole (12)
- zlib (12)
クラス
-
ARGF
. class (24) - Addrinfo (48)
- CGI (12)
-
CGI
:: Cookie (36) -
CGI
:: Session (12) - CSV (132)
-
Digest
:: Base (24) - Dir (357)
-
Encoding
:: Converter (60) - Exception (24)
- File (516)
-
File
:: Stat (36) -
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Commands :: WhichCommand (24) -
Gem
:: ConfigFile (24) -
Gem
:: Ext :: Builder (12) -
Gem
:: Ext :: ConfigureBuilder (12) -
Gem
:: Ext :: ExtConfBuilder (12) -
Gem
:: Ext :: RakeBuilder (12) -
Gem
:: Format (60) -
Gem
:: GemPathSearcher (84) -
Gem
:: Indexer (12) -
Gem
:: Installer (24) -
Gem
:: OldFormat (60) -
Gem
:: RemoteFetcher (36) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (120) -
Gem
:: Uninstaller (12) -
Gem
:: Validator (36) - IO (246)
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) -
IRB
:: FileInputMethod (12) - LoadError (12)
- Logger (12)
-
Net
:: FTP (30) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (540) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (24) -
Net
:: POP3 (36) -
OpenSSL
:: SSL :: SSLContext (60) -
OpenSSL
:: X509 :: Store (24) - OptionParser (24)
- PStore (12)
- Pathname (1322)
- Proc (12)
-
RDoc
:: Markup :: ToHtmlCrossref (12) -
RDoc
:: Options (60) -
REXML
:: Attribute (12) -
REXML
:: Element (60) -
REXML
:: Elements (60) -
REXML
:: XPath (36) -
RSS
:: Rss :: Channel :: Cloud (24) -
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) -
Rake
:: TestTask (24) - RubyVM (1)
-
RubyVM
:: InstructionSequence (84) - Shell (120)
-
Shell
:: CommandProcessor (60) -
Shell
:: Filter (48) - Socket (144)
- String (48)
- SyntaxError (3)
- Tempfile (120)
- Thread (24)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
- UNIXServer (48)
- UNIXSocket (60)
-
URI
:: FTP (48) -
URI
:: Generic (120) -
URI
:: HTTP (48) -
URI
:: LDAP (12) -
URI
:: MailTo (12) -
WEBrick
:: Cookie (48) -
WEBrick
:: HTTPAuth :: Htdigest (24) -
WEBrick
:: HTTPAuth :: Htgroup (24) -
WEBrick
:: HTTPAuth :: Htpasswd (24) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (12) -
WIN32OLE
_ TYPELIB (12) -
Win32
:: Resolv (12) -
Zlib
:: GzipFile (12)
モジュール
-
CGI
:: QueryExtension (24) - Etc (660)
-
File
:: Constants (12) - FileTest (24)
- FileUtils (72)
- Gem (60)
-
Gem
:: QuickLoader (36) -
Gem
:: RequirePathsBuilder (12) -
Gem
:: Security (12) - IRB (12)
- Kernel (348)
-
OpenSSL
:: X509 (60) - OpenURI (24)
- Rake (36)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10) -
Socket
:: Constants (60) - URI (36)
-
WEBrick
:: Config (12) -
WEBrick
:: HTTPUtils (12)
オブジェクト
- ENV (12)
-
IRB
:: MagicFile (24)
キーワード
-
$ -I (12) -
$ : (12) -
$ LOAD _ PATH (12) - + (12)
-
/ (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (24)
- == (12)
- === (12)
- CSV (12)
-
CS
_ GNU _ LIBC _ VERSION (12) -
CS
_ GNU _ LIBPTHREAD _ VERSION (12) -
CS
_ PATH (12) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ CFLAGS (12) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ LDFLAGS (12) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ LIBS (12) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ CFLAGS (12) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ LDFLAGS (12) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ LIBS (12) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ CFLAGS (12) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ LDFLAGS (12) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ LIBS (12) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ CFLAGS (12) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ LDFLAGS (12) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ LIBS (12) -
CS
_ POSIX _ V6 _ WIDTH _ RESTRICTED _ ENVS (12) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ CFLAGS (12) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ LDFLAGS (12) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ LIBS (12) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ CFLAGS (12) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ LDFLAGS (12) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ LIBS (12) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ CFLAGS (12) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ LDFLAGS (12) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ LIBS (12) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ CFLAGS (12) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ LDFLAGS (12) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ LIBS (12) -
CS
_ POSIX _ V7 _ THREADS _ CFLAGS (12) -
CS
_ POSIX _ V7 _ THREADS _ LDFLAGS (12) -
CS
_ POSIX _ V7 _ WIDTH _ RESTRICTED _ ENVS (12) -
CS
_ V6 _ ENV (12) -
CS
_ V7 _ ENV (12) - Context (12)
- Cookie (12)
-
DEFAULT
_ CERT _ STORE (12) - DOSISH 対応 (12)
- ENV (6)
- ErrorData (12)
-
FNM
_ PATHNAME (12) - GemPathSearcher (12)
- GemPaths (12)
-
IFF
_ OVS _ DATAPATH (24) -
IPV6
_ PATHMTU (24) -
IPV6
_ RECVPATHMTU (24) -
IP
_ MTU _ DISCOVER (24) -
MSG
_ CONFIRM (24) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 1 . 0 (4) - Options (12)
-
PATH
_ SEPARATOR (24) -
PC
_ 2 _ SYMLINKS (12) -
PC
_ ALLOC _ SIZE _ MIN (12) -
PC
_ ASYNC _ IO (12) -
PC
_ CHOWN _ RESTRICTED (12) -
PC
_ FILESIZEBITS (12) -
PC
_ LINK _ MAX (12) -
PC
_ MAX _ CANON (12) -
PC
_ MAX _ INPUT (12) -
PC
_ NAME _ MAX (12) -
PC
_ NO _ TRUNC (12) -
PC
_ PATH _ MAX (12) -
PC
_ PIPE _ BUF (12) -
PC
_ PRIO _ IO (12) -
PC
_ REC _ INCR _ XFER _ SIZE (12) -
PC
_ REC _ MAX _ XFER _ SIZE (12) -
PC
_ REC _ MIN _ XFER _ SIZE (12) -
PC
_ REC _ XFER _ ALIGN (12) -
PC
_ SYMLINK _ MAX (12) -
PC
_ SYNC _ IO (12) -
PC
_ TIMESTAMP _ RESOLUTION (12) -
PC
_ VDISABLE (12) - Pathname (24)
- RequirePathsBuilder (12)
- Rubyの起動 (12)
- Ruby用語集 (12)
-
SEPARATOR
_ PAT (12) - SSL (12)
-
TO
_ PATH (12) -
V
_ ERR _ DEPTH _ ZERO _ SELF _ SIGNED _ CERT (12) -
V
_ ERR _ PATH _ LENGTH _ EXCEEDED (12) -
V
_ ERR _ SELF _ SIGNED _ CERT _ IN _ CHAIN (12) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT (12) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT _ LOCALLY (12) - X509 (12)
- XPath (12)
- XPathParser (12)
- [] (12)
- absolute? (12)
-
absolute
_ path (36) -
absolute
_ path? (6) -
add
_ path (12) - application (12)
- application= (12)
- ascend (24)
- atime (12)
-
attribute
_ alias _ singular (12) -
backtrace
_ locations (24) - basename (12)
- binread (24)
- binwrite (24)
- birthtime (11)
- blockdev? (24)
-
body
_ stream (12) -
body
_ stream= (12) - build (108)
- build2 (24)
-
ca
_ file= (12) -
ca
_ path (24) -
ca
_ path= (24) -
caller
_ locations (24) - cd (12)
-
cert
_ store= (24) - certs (12)
- cgi (12)
- chardev? (24)
- chdir (54)
- children (28)
- chmod (12)
- chown (12)
- chroot (12)
- cleanpath (12)
-
clear
_ paths (12) - close (12)
- close! (12)
- collect (12)
- compile (12)
-
compile
_ file (12) - component (12)
- confstr (12)
- convpath (12)
- copy (12)
- create (24)
-
create
_ makefile (12) -
create
_ rule (12) - ctime (12)
-
def
_ system _ command (12) -
default
_ path (12) -
default
_ system _ path (6) -
default
_ system _ path= (6) - delete (48)
-
delete
_ all (12) - descend (24)
-
dir
_ config (12) - directory? (24)
- dirname (12)
-
drb
/ ssl (12) - each (24)
-
each
_ child (56) -
each
_ element (12) -
each
_ entry (15) -
each
_ filename (12) -
each
_ line (24) - empty? (27)
-
enable
_ ssl (24) - entries (36)
- eql? (12)
-
escape
_ path (12) - exec (48)
- executable? (24)
-
executable
_ real? (24) - execute (24)
- exist? (24)
- exists? (9)
- extensions= (12)
- extname (12)
-
extra
_ rdoc _ files= (12) -
family
_ addrinfo (24) -
fc
_ path (12) - fdatasync (12)
-
fetch
_ path (12) - file (24)
- file? (24)
- filename (12)
- find (48)
-
find
_ all (12) -
find
_ class _ path (12) -
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ paths (12) - first (12)
- flush (48)
- fnmatch (24)
- fnmatch? (24)
-
for
_ fd (3) - foreach (114)
- formatter (12)
-
from
_ file _ by _ path (24) -
from
_ io (24) - ftype (12)
-
full
_ gem _ path (12) - gem (12)
-
gem
_ path (24) -
gem
_ path= (24) -
gem
_ paths (12) - get (48)
- get2 (24)
-
get
_ elements (12) -
get
_ file _ uri _ path (12) -
get
_ hosts _ path (12) -
get
_ path (12) -
get
_ print (24) -
get
_ response (24) -
get
_ text (12) - getwd (12)
- glob (40)
- grpowned? (24)
- hash (12)
- head (12)
- head2 (24)
- hierarchical? (12)
- home (24)
-
init
_ gemspecs (12) - inject (12)
- inspect (36)
-
install
_ system _ commands (6) -
installation
_ path (12) -
installed
_ spec _ directories (12) - irb (12)
-
irb
_ path (12) -
irb
_ path= (12) - join (36)
- lchmod (12)
- lchown (12)
-
lib
_ dirs _ for (12) - libpathflag (12)
- libs (12)
- libs= (12)
-
link
_ command (12) - load (12)
-
loaded
_ from= (12) - lock (12)
- logger (12)
- lstat (12)
- make (12)
-
make
_ link (12) -
make
_ symlink (12) - match (12)
-
matching
_ file? (12) -
matching
_ files (12) - mkcol (12)
- mkdir (42)
- mkpath (24)
- mlsd (20)
- mlst (10)
- mountpoint? (12)
- move (12)
- mtime (12)
-
net
/ http (12) - new (387)
- new2 (12)
- open (264)
-
open
_ uri (24) -
open
_ uri _ or _ path (12) - opendir (24)
-
original
_ dir (24) - owned? (24)
-
pack
_ sockaddr _ un (12) -
package
_ dir _ path (12) -
page
_ dir (12) - paranoid (12)
- parent (12)
- parse (24)
-
parse
_ file (10) - patch (24)
- path= (60)
-
path
_ info (24) -
path
_ info= (12) -
path
_ ok? (12) -
path
_ translated (12) -
path
_ warning (12) -
path
_ warning= (12) - pathconf (12)
- pathmap (24)
-
pathmap
_ explode (12) -
pathmap
_ partial (12) -
pathmap
_ replace (12) - pathname (22)
- pipe? (24)
- post (24)
- post2 (24)
-
program
_ name (12) -
program
_ name= (12) - propfind (12)
- proppatch (12)
-
push
_ all _ highest _ version _ gems _ on _ load _ path (12) -
push
_ gem _ version _ on _ load _ path (12) - pushd (6)
- pushdir (6)
- put (12)
- put2 (24)
- pwd (12)
-
rake
/ gempackagetask (12) -
rb
_ class2name (12) -
rb
_ class _ path (12) -
rb
_ path2class (12) -
rb
_ set _ class _ path (12) - rdoc (12)
-
rdoc
/ generator / json _ index (12) - read (60)
-
read
_ body (24) - readable? (24)
-
readable
_ real? (24) - readlines (60)
- readlink (42)
- realdirpath (24)
- realpath (36)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) -
remove
_ leading _ dot _ dir (12) - rename (12)
- reopen (36)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) -
request
_ uri (12) - require (12)
-
require
_ path (12) -
require
_ path= (12) -
require
_ paths (12) -
require
_ paths= (12) -
require
_ relative (12) -
resolve
_ feature _ path (1) - rmdir (42)
- rmtree (12)
- root (12)
- root? (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) - rubygems (12)
-
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ security (12) -
sanitize
_ path (12) - scan (12)
-
search
_ convpath (12) - select (12)
-
send
_ request (12) -
set
_ backtrace (12) -
set
_ default _ paths (12) -
set
_ params (12) -
set
_ paths (12) - setgid? (24)
- setuid? (24)
- size (24)
- size? (36)
-
sockaddr
_ un (12) - socket? (24)
-
source
_ index (12) -
source
_ location (12) - spawn (48)
-
spec
_ path (12) - split (54)
-
split
_ all (12) - start (12)
- stat (12)
-
static
_ path (12) -
static
_ path= (12) - sticky? (24)
- sub (24)
-
sub
_ ext (12) - symlink? (24)
- sysopen (24)
- system (48)
-
system
_ path (6) -
system
_ path= (6) - table (12)
-
test
/ unit (1) - text (12)
-
to
_ a (24) -
to
_ json (12) -
to
_ path (39) -
to
_ s (24) - trace (12)
- truncate (54)
-
trusted
_ cert _ path (12) -
try
_ file (12) - unix (36)
-
unix
_ path (12) -
unix
_ server _ loop (12) -
unix
_ server _ socket (24) - unlink (54)
- unlock (12)
- utime (12)
-
verify
_ gem _ file (12) -
verify
_ trust _ dir (12) -
webrick
/ cgi (12) -
world
_ readable? (36) -
world
_ writable? (36) - writable? (24)
-
writable
_ real? (24) - write (36)
-
write
_ require _ paths _ file _ if _ needed (12) - xpath (24)
- zero? (24)
- セキュリティモデル (12)
- 変数と定数 (12)
- 環境変数 (12)
検索結果
先頭5件
-
pathname (26000.0)
-
パス名をオブジェクト指向らしく扱うためのライブラリです。
パス名をオブジェクト指向らしく扱うためのライブラリです。 -
File
. path(filename) -> String (18177.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"
//}... -
URI
:: Generic # path -> String | nil (18147.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
...自身の path を文字列で返します。設定されていない場合は nil を返します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> n......il
p URI('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
IO
# path -> String | nil (18126.0) -
IO に関連付けられたパスを返します。IO がパスに関連付けられていない場合は nil を返します。
...が返すパスがファイルシステム上に存在することは保証されていません。
//emlist[例][ruby]{
p STDIN.path # => "<STDIN>"
p IO.new(IO.sysopen("/")).path # => "/"
p IO.new(IO.sysopen("/"), path: "foo").path # => "foo"
//}... -
CSV
# path -> String (18123.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
Net
:: HTTPGenericRequest # path -> String (18123.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
File
# path -> String (18120.0) -
オープン時に使用したパスを文字列で返します。
...作成されていたりする場合です。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/tmp", File::RDWR | File::TMPFILE){|f| f.path } #=> "/tmp"
//}......発生します。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/tmp", File::RDWR | File::TMPFILE){|f| f.path } # IOError: File is unnamed (TMPFILE?)
//}... -
RubyVM
:: InstructionSequence # path -> String (18119.0) -
self が表す命令シーケンスの相対パスを返します。
...ompiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see Ruby......VM::InstructionSequence#absolute_path... -
Zlib
:: GzipFile # path -> String (18117.0) -
関連付けられている IO オブジェクトのパスを返します。 このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。
...関連付けられている IO オブジェクトのパスを返します。
このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。... -
Dir
# path -> String (18114.0) -
オープンしているディレクトリのパス名を文字列で返します。
...オープンしているディレクトリのパス名を文字列で返します。
//emlist[例][ruby]{
Dir.open("..") do |d|
d.path # => ".."
d.to_path # => ".."
end
//}...