1438件ヒット
[1-100件を表示]
(0.114秒)
種類
- インスタンスメソッド (778)
- 特異メソッド (550)
- モジュール関数 (66)
- 変数 (33)
- 文書 (11)
ライブラリ
- ビルトイン (520)
- csv (22)
- etc (11)
- fileutils (22)
-
json
/ add / exception (11) - mkmf (55)
-
net
/ ftp (27) -
net
/ http (88) -
net
/ pop (11) - open-uri (11)
- openssl (11)
- optparse (11)
- pathname (187)
- rake (22)
-
rexml
/ document (11) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ remote _ fetcher (33) -
rubygems
/ security (11) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (22) - shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (18) - socket (44)
- uri (121)
-
webrick
/ httputils (11) - win32ole (11)
クラス
- Addrinfo (22)
- CSV (22)
- Dir (58)
- Exception (22)
- File (113)
-
Gem
:: Commands :: LockCommand (11) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: GemPathSearcher (11) -
Gem
:: RemoteFetcher (33) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (22) - IO (110)
-
Net
:: FTP (27) -
Net
:: HTTP (44) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (22) -
Net
:: POP3 (11) -
OpenSSL
:: SSL :: SSLContext (11) - OptionParser (11)
- Pathname (187)
- Proc (11)
-
REXML
:: Element (11) -
RubyVM
:: InstructionSequence (66) - Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (18) - Socket (22)
- String (22)
- Thread (22)
-
Thread
:: Backtrace :: Location (44) - TracePoint (11)
-
URI
:: FTP (22) -
URI
:: Generic (33) -
URI
:: HTTP (11) -
URI
:: LDAP (11) -
URI
:: MailTo (11) -
WEBrick
:: Cookie (33) -
WIN32OLE
_ TYPELIB (11)
モジュール
- Etc (11)
- FileUtils (22)
- Kernel (110)
- OpenURI (11)
-
RubyVM
:: AbstractSyntaxTree (8) - URI (33)
-
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (11)
キーワード
-
$ -I (11) -
$ : (11) -
$ LOAD _ PATH (11) - [] (11)
-
absolute
_ path (33) -
attribute
_ alias _ singular (11) -
backtrace
_ locations (22) - binread (22)
- binwrite (22)
-
body
_ stream (11) -
body
_ stream= (11) -
ca
_ path (22) -
caller
_ locations (22) - certs (11)
- children (25)
- compile (11)
-
compile
_ file (11) - confstr (11)
-
create
_ makefile (11) -
dir
_ config (11) -
each
_ child (22) -
each
_ entry (13) - entries (33)
-
escape
_ path (11) - extname (11)
-
fetch
_ path (11) - find (20)
-
find
_ executable (11) - ftype (11)
- get (22)
-
get
_ file _ uri _ path (11) -
get
_ path (11) - home (22)
- inspect (22)
-
installed
_ spec _ directories (11) - join (22)
- libpathflag (11)
-
link
_ command (11) -
matching
_ files (11) - mlsd (18)
- mlst (9)
- new (66)
- new2 (11)
-
open
_ uri (11) -
open
_ uri _ or _ path (11) -
pack
_ sockaddr _ un (11) - parse (22)
-
parse
_ file (8) -
pathmap
_ explode (11) -
pathmap
_ replace (11) -
program
_ name (11) - read (44)
-
read
_ body (22) - readlines (44)
- readlink (29)
- realdirpath (11)
- realpath (11)
-
remove
_ entry (11) -
remove
_ entry _ secure (11) -
require
_ path (11) - rmtree (11)
-
ruby 1
. 6 feature (11) - select (11)
-
set
_ backtrace (11) -
sockaddr
_ un (11) -
source
_ location (11) -
spec
_ path (11) - split (40)
- text (11)
-
to
_ json (11) -
to
_ path (18) -
to
_ s (11) - trace (11)
- truncate (51)
-
trusted
_ cert _ path (11) -
try
_ file (11) - unix (11)
-
unix
_ path (11) - write (33)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # path -> String (21325.0) -
self が表す命令シーケンスの相対パスを返します。
...nstructionSequence.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::Instruc......tionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
Thread
:: Backtrace :: Location # path -> String (21319.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... -
TracePoint
# path -> String (21319.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
File
. path(filename) -> String (18389.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 (18353.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'... -
CSV
# path -> String (18329.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
File
# path -> String (18326.0) -
オープン時に使用したパスを文字列で返します。
...る場合です。
@raise IOError TMPFILE 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 } # IOError: File is unnamed (TMPFILE?)
//}... -
WIN32OLE
_ TYPELIB # path -> String (18319.0) -
TypeLibのパス名を取得します。
...TypeLibのパス名を取得します。
@return TypeLibのパス名を文字列で返します。この値はレジストリの登録値を
そのまま利用するため、Rubyのパス名形式(ディレクトリ区切りは
「/」)ではなく、Windowsのパス名形式(......ディレクトリ区切りは「\」)
です。
@raise WIN32OLERuntimeError TypeLibの属性が読み取れない場合に通知します。
tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tlib.path # => 'C:\...\EXCEL.EXE'
TypeLibは拡張子TLB(まれに... -
WEBrick
:: Cookie # path -> String (18308.0) -
パス名を文字列で表すアクセサです。
...パス名を文字列で表すアクセサです。
@param value パス名を文字列で指定します。... -
Gem
:: Security :: Policy . trusted _ cert _ path(cert , options) -> String (12413.0) -
与えられた証明書へのパスを返します。
...与えられた証明書へのパスを返します。
@param cert 証明書オブジェクトを指定します。
@param options その他のオプションを指定します。...