1944件ヒット
[1-100件を表示]
(0.074秒)
ライブラリ
- ビルトイン (601)
-
cgi
/ core (24) - csv (72)
- etc (12)
-
irb
/ context (24) -
json
/ add / exception (12) - logger (12)
- mkmf (48)
-
net
/ ftp (10) -
net
/ http (72) -
net
/ pop (12) - open-uri (12)
- openssl (12)
- optparse (12)
- pathname (132)
- pstore (12)
- rake (84)
-
rake
/ packagetask (12) -
rexml
/ document (36) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ defaults (12) -
rubygems
/ format (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ old _ format (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ security (12) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (48) -
rubygems
/ validator (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (48)
- tempfile (12)
- uri (48)
-
webrick
/ httprequest (24) -
webrick
/ httputils (12) -
win32
/ resolv (12) - win32ole (12)
- zlib (12)
クラス
-
ARGF
. class (24) - Addrinfo (12)
-
CGI
:: Cookie (24) - CSV (60)
- Dir (88)
-
Encoding
:: Converter (36) - Exception (24)
- File (120)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: Format (12) -
Gem
:: GemPathSearcher (24) -
Gem
:: OldFormat (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (48) -
Gem
:: Validator (12) - IO (138)
-
IRB
:: Context (12) - LoadError (12)
- Logger (12)
-
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (36) -
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (24) -
Net
:: POP3 (12) -
OpenSSL
:: SSL :: SSLContext (12) - OptionParser (12)
- PStore (12)
- Pathname (132)
- Proc (12)
-
RDoc
:: Options (12) -
REXML
:: Attribute (12) -
REXML
:: Element (24) -
Rake
:: Application (12) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) -
RubyVM
:: InstructionSequence (36) - Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (24)
- String (48)
- SyntaxError (3)
- Tempfile (12)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
- UNIXSocket (12)
-
URI
:: Generic (24) -
URI
:: HTTP (12) -
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPRequest (24) -
WIN32OLE
_ TYPELIB (12) -
Win32
:: Resolv (12) -
Zlib
:: GzipFile (12)
モジュール
-
CGI
:: QueryExtension (24) - Etc (12)
- Gem (12)
- Kernel (84)
- OpenURI (12)
- Rake (12)
- URI (12)
-
WEBrick
:: HTTPUtils (12)
オブジェクト
- ENV (12)
キーワード
-
$ -I (12) -
$ : (12) -
$ LOAD _ PATH (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - CSV (12)
- Context (12)
- Cookie (12)
-
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) - Rubyの起動 (12)
- Ruby用語集 (12)
- [] (12)
-
absolute
_ path (36) - binread (24)
- binwrite (24)
-
ca
_ path (24) - certs (12)
- cgi (12)
- children (16)
- confstr (12)
-
default
_ path (12) -
dir
_ config (12) - entries (24)
-
escape
_ path (12) - extname (12)
-
fetch
_ path (12) - filename (12)
-
find
_ executable (12) -
for
_ fd (3) - formatter (12)
- ftype (12)
-
full
_ gem _ path (12) -
gem
_ path (24) - get (24)
-
get
_ file _ uri _ path (12) -
get
_ hosts _ path (12) -
get
_ path (12) - home (24)
- inspect (36)
-
installation
_ path (12) -
installed
_ spec _ directories (12) - irb (12)
-
irb
_ path (12) - join (12)
-
lib
_ dirs _ for (12) - libpathflag (12)
-
link
_ command (12) - logger (12)
-
matching
_ files (12) - new (51)
- open (54)
-
open
_ uri (12) -
open
_ uri _ or _ path (12) -
original
_ dir (24) -
pack
_ sockaddr _ un (12) -
package
_ dir _ path (12) - path= (12)
-
path
_ info (24) -
path
_ translated (12) - pathmap (24)
-
pathmap
_ explode (12) -
pathmap
_ partial (12) -
pathmap
_ replace (12) - pathname (10)
-
program
_ name (12) - rdoc (12)
- read (48)
-
read
_ body (24) - readlines (48)
- readlink (30)
- realdirpath (12)
- realpath (12)
-
remove
_ leading _ dot _ dir (12) -
request
_ uri (12) -
require
_ path (12) -
require
_ paths (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ security (12) - select (12)
-
set
_ backtrace (12) -
sockaddr
_ un (12) -
source
_ location (12) -
spec
_ path (12) - split (42)
-
static
_ path (12) - sub (24)
- text (12)
-
to
_ json (12) -
to
_ path (39) -
to
_ s (24) -
trusted
_ cert _ path (12) -
try
_ file (12) -
unix
_ path (12) -
webrick
/ cgi (12) - write (36)
- xpath (24)
検索結果
先頭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 } # IOError: File is unnamed (TMPFILE?)
//}...