3391件ヒット
[1-100件を表示]
(0.122秒)
別のキーワード
ライブラリ
- ビルトイン (248)
-
cgi
/ core (22) - csv (22)
- digest (11)
- etc (11)
-
irb
/ cmd / load (11) -
irb
/ context (22) -
json
/ add / exception (11) - mkmf (77)
-
net
/ ftp (36) -
net
/ http (484) -
net
/ pop (11) - openssl (66)
- optparse (22)
- pathname (1144)
- pstore (11)
- rake (88)
-
rake
/ packagetask (11) -
rexml
/ document (121) - rss (22)
- rubygems (22)
-
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ commands / which _ command (22) -
rubygems
/ config _ file (22) -
rubygems
/ custom _ require (11) -
rubygems
/ format (22) -
rubygems
/ gem _ path _ searcher (66) -
rubygems
/ indexer (11) -
rubygems
/ old _ format (22) -
rubygems
/ remote _ fetcher (33) -
rubygems
/ require _ paths _ builder (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (99) -
rubygems
/ uninstaller (11) -
rubygems
/ validator (22) - shell (90)
-
shell
/ command-processor (54) -
shell
/ filter (48) - socket (44)
- tempfile (55)
- uri (44)
-
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htgroup (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (33) -
webrick
/ httpserver (11) - win32ole (11)
- zlib (11)
クラス
-
ARGF
. class (11) - Addrinfo (33)
-
CGI
:: Cookie (22) - CSV (22)
-
Digest
:: Base (11) - Dir (22)
-
Encoding
:: Converter (11) - Exception (22)
- File (22)
-
File
:: Stat (22) -
Gem
:: Commands :: LockCommand (11) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: Commands :: WhichCommand (22) -
Gem
:: ConfigFile (22) -
Gem
:: Format (22) -
Gem
:: GemPathSearcher (66) -
Gem
:: Indexer (11) -
Gem
:: OldFormat (22) -
Gem
:: RemoteFetcher (33) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (99) -
Gem
:: Uninstaller (11) -
Gem
:: Validator (22) - IO (48)
-
IRB
:: Context (22) -
IRB
:: ExtendCommand :: Load (11) - LoadError (11)
-
Net
:: FTP (27) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (429) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (22) -
Net
:: POP3 (11) -
OpenSSL
:: SSL :: SSLContext (44) -
OpenSSL
:: X509 :: Store (22) - OptionParser (22)
- PStore (11)
- Pathname (1133)
- Proc (11)
-
RDoc
:: Options (55) -
REXML
:: Attribute (11) -
REXML
:: Element (55) -
REXML
:: Elements (55) -
RSS
:: Rss :: Channel :: Cloud (22) -
Rake
:: Application (11) -
Rake
:: FileList (11) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (33) - Shell (90)
-
Shell
:: CommandProcessor (54) -
Shell
:: Filter (48) - String (44)
- SyntaxError (2)
- Tempfile (55)
-
Thread
:: Backtrace :: Location (33) - TracePoint (22)
- UNIXSocket (11)
-
URI
:: Generic (33) -
URI
:: HTTP (11) -
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htgroup (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPServer :: MountTable (11) -
WIN32OLE
_ TYPELIB (11) -
Zlib
:: GzipFile (11)
モジュール
-
CGI
:: QueryExtension (22) - FileUtils (11)
-
Gem
:: QuickLoader (22) -
Gem
:: RequirePathsBuilder (11) - Kernel (99)
-
Rake
:: TaskManager (11)
キーワード
- + (11)
-
/ (10) - <=> (22)
- == (11)
- === (11)
- Pathname (11)
- absolute? (11)
-
absolute
_ path (22) -
add
_ path (11) - ascend (22)
- atime (11)
- basename (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- blockdev? (11)
-
body
_ stream (11) -
body
_ stream= (11) -
ca
_ file= (11) -
ca
_ path (22) -
ca
_ path= (22) - cd (6)
-
cert
_ store= (22) - chardev? (11)
- chdir (6)
- children (11)
- chmod (11)
- chown (11)
- cleanpath (11)
- close (11)
- close! (11)
- collect (11)
- convpath (11)
- copy (11)
-
create
_ makefile (11) -
create
_ rule (11) - ctime (11)
- delete (33)
-
delete
_ all (11) - descend (22)
- directory? (11)
- dirname (11)
- each (11)
-
each
_ child (22) -
each
_ element (11) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (22) - empty? (8)
-
enable
_ ssl (11) - entries (11)
- eql? (11)
- executable? (11)
-
executable
_ real? (11) - execute (11)
- exist? (11)
- extensions= (11)
- extname (11)
-
extra
_ rdoc _ files= (11) -
family
_ addrinfo (22) -
fetch
_ path (11) - file (11)
- file? (11)
- find (33)
-
find
_ all (11) -
find
_ executable (11) -
find
_ header (11) -
find
_ library (22) -
find
_ paths (11) - flush (33)
- fnmatch (11)
- fnmatch? (11)
- foreach (18)
- ftype (11)
-
full
_ gem _ path (11) -
gem
_ path (22) -
gem
_ path= (22) -
gem
_ paths (11) - get (22)
- get2 (22)
-
get
_ elements (11) -
get
_ file _ uri _ path (11) -
get
_ path (11) -
get
_ text (11) - glob (14)
- grpowned? (11)
- hash (11)
- head (11)
- head2 (22)
-
init
_ gemspecs (11) - inject (11)
- inspect (33)
-
installation
_ path (11) -
irb
_ path (11) -
irb
_ path= (11) - join (11)
- lchmod (11)
- lchown (11)
-
lib
_ dirs _ for (11) - libpathflag (11)
-
link
_ command (11) -
loaded
_ from= (11) - lock (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) -
matching
_ file? (11) -
matching
_ files (11) - mkcol (11)
- mkdir (29)
- mkpath (11)
- mlsd (18)
- mlst (9)
- mountpoint? (11)
- move (11)
- mtime (11)
- open (40)
-
open
_ uri _ or _ path (11) - opendir (22)
-
original
_ dir (11) - owned? (11)
-
package
_ dir _ path (11) -
page
_ dir (11) - paranoid (11)
- parent (11)
- patch (22)
- path= (55)
-
path
_ info (22) -
path
_ info= (11) -
path
_ ok? (11) -
path
_ translated (11) - pathconf (11)
- pathmap (22)
-
pathmap
_ explode (11) -
pathmap
_ partial (11) -
pathmap
_ replace (11) - pathname (9)
- pipe? (11)
- post (22)
- post2 (22)
-
program
_ name (11) -
program
_ name= (11) - propfind (11)
- proppatch (11)
-
push
_ all _ highest _ version _ gems _ on _ load _ path (11) -
push
_ gem _ version _ on _ load _ path (11) - pushd (6)
- pushdir (6)
- put (11)
- put2 (22)
- read (11)
-
read
_ body (22) - readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (29)
- realdirpath (11)
- realpath (22)
- relative? (11)
-
relative
_ path _ from (11) -
remove
_ leading _ dot _ dir (11) - rename (11)
- reopen (33)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) -
request
_ uri (11) - require (11)
-
require
_ path (11) -
require
_ path= (11) -
require
_ paths (11) -
require
_ paths= (11) - rmdir (29)
- rmtree (11)
- root (11)
- root? (11)
-
sanitize
_ path (11) - scan (11)
- select (11)
-
send
_ request (11) -
set
_ backtrace (11) -
set
_ default _ paths (11) -
set
_ params (11) - setgid? (11)
- setuid? (11)
- size (11)
- size? (22)
- socket? (11)
-
source
_ location (11) -
spec
_ path (11) - split (29)
-
split
_ all (11) - stat (11)
-
static
_ path (11) -
static
_ path= (11) - sticky? (11)
- sub (22)
-
sub
_ ext (11) - symlink? (11)
- sysopen (11)
-
system
_ path (6) -
system
_ path= (6) - text (11)
-
to
_ a (11) -
to
_ json (11) -
to
_ path (35) -
to
_ s (11) - trace (11)
- truncate (40)
-
try
_ file (11) -
unix
_ path (11) - unlink (40)
- unlock (11)
- utime (11)
-
verify
_ gem _ file (11) -
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (11)
-
write
_ require _ paths _ file _ if _ needed (11) - xpath (22)
- zero? (11)
検索結果
先頭5件
-
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (24572.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... -
URI
:: Generic # path -> String | nil (24278.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 #=> nil
p URI......('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
IO
# path -> String | nil (24245.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"
//}... -
Tempfile
# path -> String | nil (24226.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil... -
CSV
# path -> String (24224.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
Net
:: HTTPGenericRequest # path -> String (24224.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 (24221.0) -
オープン時に使用したパスを文字列で返します。
...::TMPFILEオプション付きで作成されていたりする場合です。
//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"
//}......TMPFILE File::Constants::TMPFILEオプション付きで作成されている場合に発生します。
//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 (24220.0) -
self が表す命令シーケンスの相対パスを返します。
..."<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/meth......od.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
TracePoint
# path -> String (24220.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
Zlib
:: GzipFile # path -> String (24218.0) -
関連付けられている IO オブジェクトのパスを返します。 このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。
...関連付けられている IO オブジェクトのパスを返します。
このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。...