1092件ヒット
[101-200件を表示]
(0.083秒)
ライブラリ
- ビルトイン (156)
-
cgi
/ core (24) - etc (12)
-
irb
/ context (24) -
json
/ add / exception (12) - mkmf (12)
-
net
/ http (444) - openssl (48)
- optparse (24)
- pathname (24)
- rake (12)
- rubygems (36)
-
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ gem _ path _ searcher (36) -
rubygems
/ indexer (12) -
rubygems
/ specification (108) - uri (12)
クラス
-
Encoding
:: Converter (12) - Exception (24)
-
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: GemPathSearcher (36) -
Gem
:: Indexer (12) -
Gem
:: Specification (108) - IO (12)
-
IRB
:: Context (24) -
Net
:: HTTP (420) -
Net
:: HTTPResponse (24) -
OpenSSL
:: SSL :: SSLContext (48) - OptionParser (24)
- Pathname (24)
- Proc (12)
-
RDoc
:: Options (60) -
Rake
:: Application (12) -
RubyVM
:: InstructionSequence (48) - Thread (24)
-
Thread
:: Backtrace :: Location (48) -
URI
:: Generic (12)
モジュール
-
CGI
:: QueryExtension (24) -
Gem
:: QuickLoader (24) - Kernel (24)
キーワード
-
absolute
_ path (24) -
backtrace
_ locations (24) - binread (12)
-
ca
_ path (12) -
ca
_ path= (12) -
cert
_ store= (12) - cleanpath (12)
- convpath (12)
- copy (12)
- delete (12)
-
dir
_ config (12) - extensions= (12)
-
extra
_ rdoc _ files= (12) - find (12)
-
find
_ all (12) -
full
_ gem _ path (12) - gem (12)
- get (24)
- get2 (24)
-
get
_ path (12) - head (12)
- head2 (24)
-
init
_ gemspecs (12) - inspect (24)
-
installation
_ path (12) -
irb
_ path (12) -
irb
_ path= (12) -
loaded
_ from= (12) - lock (12)
- mkcol (12)
- move (12)
-
original
_ dir (12) -
page
_ dir (12) - paranoid (12)
- patch (24)
- path= (12)
-
path
_ info (12) -
path
_ translated (12) - pathconf (12)
- 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) - put (12)
- put2 (24)
-
read
_ body (24) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) -
require
_ path (12) -
require
_ path= (12) -
require
_ paths (12) -
require
_ paths= (12) - root (12)
-
sanitize
_ path (12) - select (12)
-
send
_ request (12) -
set
_ backtrace (12) -
set
_ params (12) -
source
_ location (12) -
static
_ path (12) -
static
_ path= (12) -
to
_ a (12) -
to
_ json (12) -
to
_ s (12) - trace (12)
- unlock (12)
検索結果
先頭5件
-
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (9337.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>
//}... -
Gem
:: Specification # require _ path=(path) (9209.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=... -
Gem
:: ConfigFile # path=(path) (9203.0) -
Gem を探索するパスをセットします。
Gem を探索するパスをセットします。 -
RDoc
:: Options # sanitize _ path(path) (9203.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Gem
:: Specification # extensions=(paths) (9201.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
...拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
@param paths 拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを指定します。... -
Gem
:: Specification # require _ paths=(paths) (9201.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
...パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを指... -
Thread
:: Backtrace :: Location # absolute _ path -> String (9132.0) -
self が表すフレームの絶対パスを返します。
...][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end
# => /path/to/foo.rb
# /path/to/foo.rb
# /path/to/foo.rb
//}
@see Thread::Backtrace::Location#path... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (9120.0) -
self が表す命令シーケンスの絶対パスを返します。
...tionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSe......quence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
CGI
:: QueryExtension # path _ info -> String (9118.0) -
ENV['PATH_INFO'] を返します。
...ENV['PATH_INFO'] を返します。...