1778件ヒット
[1-100件を表示]
(0.059秒)
ライブラリ
- ビルトイン (545)
-
cgi
/ core (22) - csv (66)
- etc (11)
-
irb
/ context (22) -
json
/ add / exception (11) - logger (11)
- mkmf (44)
-
net
/ ftp (9) -
net
/ http (66) -
net
/ pop (11) - open-uri (11)
- openssl (11)
- optparse (11)
- pathname (121)
- pstore (11)
- rake (77)
-
rake
/ packagetask (11) -
rexml
/ document (33) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ config _ file (11) -
rubygems
/ defaults (11) -
rubygems
/ format (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ old _ format (11) -
rubygems
/ remote _ fetcher (33) -
rubygems
/ security (11) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (44) -
rubygems
/ validator (11) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (44)
- tempfile (11)
- uri (44)
-
webrick
/ httprequest (22) -
webrick
/ httputils (11) -
win32
/ resolv (11) - win32ole (11)
- zlib (11)
クラス
-
ARGF
. class (22) - Addrinfo (11)
-
CGI
:: Cookie (22) - CSV (55)
- Dir (80)
-
Encoding
:: Converter (33) - Exception (22)
- File (110)
-
Gem
:: Commands :: LockCommand (11) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: ConfigFile (11) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: OldFormat (11) -
Gem
:: RemoteFetcher (33) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (44) -
Gem
:: Validator (11) - IO (122)
-
IRB
:: Context (11) - LoadError (11)
- Logger (11)
-
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (33) -
Net
:: HTTPGenericRequest (11) -
Net
:: HTTPResponse (22) -
Net
:: POP3 (11) -
OpenSSL
:: SSL :: SSLContext (11) - OptionParser (11)
- PStore (11)
- Pathname (121)
- Proc (11)
-
RDoc
:: Options (11) -
REXML
:: Attribute (11) -
REXML
:: Element (22) -
Rake
:: Application (11) -
Rake
:: FileList (11) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (33) - Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (22)
- String (44)
- SyntaxError (2)
- Tempfile (11)
-
Thread
:: Backtrace :: Location (44) - TracePoint (22)
- UNIXSocket (11)
-
URI
:: Generic (22) -
URI
:: HTTP (11) -
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPRequest (22) -
WIN32OLE
_ TYPELIB (11) -
Win32
:: Resolv (11) -
Zlib
:: GzipFile (11)
モジュール
-
CGI
:: QueryExtension (22) - Etc (11)
- Gem (11)
- Kernel (77)
- OpenURI (11)
- Rake (11)
- URI (11)
-
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (11)
キーワード
-
$ -I (11) -
$ : (11) -
$ LOAD _ PATH (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - CSV (11)
- Context (11)
- Cookie (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) - Rubyの起動 (11)
- Ruby用語集 (11)
- [] (11)
-
absolute
_ path (33) - binread (22)
- binwrite (22)
-
ca
_ path (22) - certs (11)
- cgi (11)
- children (14)
- confstr (11)
-
default
_ path (11) -
dir
_ config (11) - entries (22)
-
escape
_ path (11) - extname (11)
-
fetch
_ path (11) - filename (11)
-
find
_ executable (11) -
for
_ fd (2) - formatter (11)
- ftype (11)
-
full
_ gem _ path (11) -
gem
_ path (22) - get (22)
-
get
_ file _ uri _ path (11) -
get
_ hosts _ path (11) -
get
_ path (11) - home (22)
- inspect (33)
-
installation
_ path (11) -
installed
_ spec _ directories (11) - irb (11)
-
irb
_ path (11) - join (11)
-
lib
_ dirs _ for (11) - libpathflag (11)
-
link
_ command (11) - logger (11)
-
matching
_ files (11) - new (46)
- open (48)
-
open
_ uri (11) -
open
_ uri _ or _ path (11) -
original
_ dir (22) -
pack
_ sockaddr _ un (11) -
package
_ dir _ path (11) - path= (11)
-
path
_ info (22) -
path
_ translated (11) - pathmap (22)
-
pathmap
_ explode (11) -
pathmap
_ partial (11) -
pathmap
_ replace (11) - pathname (9)
-
program
_ name (11) - rdoc (11)
- read (44)
-
read
_ body (22) - readlines (44)
- readlink (29)
- realdirpath (11)
- realpath (11)
-
remove
_ leading _ dot _ dir (11) -
request
_ uri (11) -
require
_ path (11) -
require
_ paths (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ security (11) - select (11)
-
set
_ backtrace (11) -
sockaddr
_ un (11) -
source
_ location (11) -
spec
_ path (11) - split (40)
-
static
_ path (11) - sub (22)
- text (11)
-
to
_ json (11) -
to
_ path (35) -
to
_ s (22) -
trusted
_ cert _ path (11) -
try
_ file (11) -
unix
_ path (11) -
webrick
/ cgi (11) - write (33)
- xpath (22)
検索結果
先頭5件
-
String
# pathmap(spec = nil) { . . . } -> String (27213.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...自身を表します。
%d は数値のプレフィクスを取ることができます。
例:
'a/b/c/d/file.txt'.pathmap("%2d") # => 'a/b'
'a/b/c/d/file.txt'.pathmap("%-2d") # => 'c/d'
また、%d, %p, %f, %n, %x, %X には単純な文字列置換を行うための
置換パターン......A.java".pathmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。
例:
"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/path/to/fil... -
String
# pathmap _ partial(n) -> String (27201.0) -
自身から与えられた階層分パスを抜粋します。
自身から与えられた階層分パスを抜粋します。
与えられた数値が正である場合は左から、負である場合は右から抜粋します。 -
String
# pathmap _ replace(patterns) { . . . } -> String (27201.0) -
与えられたパスを前もって置き換えます。
与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。 -
String
# pathmap _ explode -> Array (27122.0) -
自身をパスを表す部分ごとに分解して配列にして返します。 String#pathmap で利用される protected メソッドです。
...自身をパスを表す部分ごとに分解して配列にして返します。
String#pathmap で利用される protected メソッドです。
@see String#pathmap... -
File
. path(filename) -> String (18278.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 (18248.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 (18228.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 (18224.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
Net
:: HTTPGenericRequest # path -> String (18224.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 (18222.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?)
//}...