1384件ヒット
[1-100件を表示]
(0.084秒)
別のキーワード
ライブラリ
- ビルトイン (204)
- digest (12)
- openssl (12)
- pathname (1102)
- shell (18)
-
shell
/ command-processor (6) -
shell
/ filter (6) - tempfile (24)
クラス
-
Digest
:: Base (12) - File (24)
-
File
:: Stat (12) - IO (48)
-
OpenSSL
:: X509 :: Store (12) - Pathname (1102)
-
RubyVM
:: InstructionSequence (48) - Shell (18)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Tempfile (24)
- Thread (24)
-
Thread
:: Backtrace :: Location (36) - TracePoint (12)
キーワード
- + (12)
-
/ (11) - <=> (24)
- absolute? (12)
-
absolute
_ path (24) -
add
_ path (12) - ascend (24)
- atime (12)
-
backtrace
_ locations (24) - basename (12)
- binread (12)
- binwrite (12)
- birthtime (11)
- blockdev? (12)
- cd (6)
- chardev? (12)
- chdir (6)
- children (12)
- chmod (12)
- chown (12)
- ctime (12)
- delete (24)
- descend (24)
- directory? (12)
- dirname (12)
-
each
_ child (24) -
each
_ entry (15) -
each
_ filename (12) -
each
_ line (24) - empty? (9)
- entries (12)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- extname (12)
- file (12)
- file? (12)
- find (24)
- flush (12)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- grpowned? (12)
- inspect (24)
- lchmod (12)
- lchown (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) - mkdir (12)
- mkpath (12)
- mountpoint? (12)
- mtime (12)
- open (24)
- opendir (24)
- owned? (12)
- parent (12)
- pipe? (12)
- read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) - rename (12)
- reopen (36)
- rmdir (12)
- rmtree (12)
- root? (12)
- setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
- socket? (12)
- split (12)
- stat (12)
- sticky? (12)
- sub (24)
- symlink? (12)
- sysopen (12)
-
to
_ a (12) -
to
_ path (12) -
to
_ s (12) - truncate (12)
- unlink (42)
- utime (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (12)
- zero? (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # path -> String (18148.0) -
self が表す命令シーケンスの相対パスを返します。
...
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。self を文字列から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1......ompiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see Ruby......VM::InstructionSequence#absolute_path... -
Thread
:: Backtrace :: Location # path -> String (18130.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... -
File
# path -> String (18127.0) -
オープン時に使用したパスを文字列で返します。
...オープン時に使用したパスを文字列で返します。
パスは self に対応するファイルを指しているとは限りません。
たとえば、ファイルが移動されていたり、削除されていたり、
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 } #=> "/tmp"
//}......オープン時に使用したパスを文字列で返します。
パスは self に対応するファイルを指しているとは限りません。
たとえば、ファイルが移動されていたり、削除されていたりする場合です。
@raise IOError TMPFILE File::Constants::TM......発生します。
//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?)
//}... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (9294.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... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (9254.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......トリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp....../foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Pathname
# realpath -> Pathname (9219.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
..."."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue 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")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# realpath(basedir = nil) -> Pathname (9219.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
..."."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue 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")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# mkpath -> nil (9117.0) -
FileUtils.mkpath(self.to_s) と同じです。
...FileUtils.mkpath(self.to_s) と同じです。
@see FileUtils.#mkpath... -
OpenSSL
:: X509 :: Store # add _ path(path) -> self (6326.0) -
path が指し示すディレクトリに含まれる証明書ファイルを 信頼する証明書として加えます。
...path が指し示すディレクトリに含まれる証明書ファイルを
信頼する証明書として加えます。
@param path 証明書が含まれるディレクトリのパス
@raise OpenSSL::X509::StoreError 追加に失敗した場合に発生します...