1092件ヒット
[1-100件を表示]
(0.029秒)
ライブラリ
- ビルトイン (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件
-
RubyVM
:: InstructionSequence # path -> String (21120.0) -
self が表す命令シーケンスの相対パスを返します。
...tionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSe......quence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
Thread
:: Backtrace :: Location # path -> String (21114.0) -
self が表すフレームのファイル名を返します。
...self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path... -
Gem
:: ConfigFile # path -> String (21102.0) -
Gem を探索するパスを返します。
Gem を探索するパスを返します。 -
Gem
:: QuickLoader # push _ all _ highest _ version _ gems _ on _ load _ path (18303.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: QuickLoader # push _ gem _ version _ on _ load _ path (18303.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: Specification # installation _ path -> String (15202.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Encoding
:: Converter # convpath -> Array (15201.0) -
変換器が行う変換の経路を配列にして返します。
...う変換の経路の配列
//emlist[][ruby]{
ec = Encoding::Converter.new("ISo-8859-1", "EUC-JP", crlf_newline: true)
p ec.convpath
#=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>],
# "crlf_newline"]
//}
@see Encoding::Converter.search_convpath... -
IO
# pathconf(name) -> Integer | nil (12201.0) -
fpathconf(3) で取得したファイルの設定変数の値を返します。
...fpathconf(3) で取得したファイルの設定変数の値を返します。
引数 name が制限に関する設定値であり、設定が制限がない状態の場合は nil
を返します。(fpathconf(3) が -1 を返し、errno が設定されていない
場合)
@param name Etc モジ......ュールの PC_ で始まる定数のいずれかを指定します。
//emlist[][ruby]{
require 'etc'
IO.pipe {|r, w|
p w.pathconf(Etc::PC_PIPE_BUF) # => 4096
}
//}... -
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>
//}...