3008件ヒット
[1-100件を表示]
(0.124秒)
ライブラリ
- ビルトイン (1301)
- csv (108)
- etc (24)
- fileutils (24)
-
irb
/ cmd / load (24) -
json
/ add / exception (12) - logger (12)
- mkmf (12)
-
net
/ http (300) - optparse (24)
- pathname (627)
- rake (84)
-
rake
/ packagetask (12) -
rexml
/ document (108) - rubygems (12)
-
rubygems
/ custom _ require (12) -
rubygems
/ gem _ path _ searcher (12) - socket (24)
- uri (48)
- win32ole (12)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- CSV (108)
- Dir (345)
-
Encoding
:: Converter (60) - Exception (24)
- File (219)
-
File
:: Stat (36) -
Gem
:: GemPathSearcher (12) - IO (186)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) - Logger (12)
-
Net
:: HTTP (240) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (24) - OptionParser (24)
- Pathname (615)
- Proc (12)
-
REXML
:: Element (36) -
REXML
:: Elements (36) -
REXML
:: XPath (36) -
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) - RubyVM (1)
-
RubyVM
:: InstructionSequence (84) - Thread (24)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
-
URI
:: FTP (12) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Etc (12)
- FileUtils (24)
- Kernel (252)
- Rake (36)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10) - URI (36)
オブジェクト
- ENV (12)
キーワード
-
$ -I (12) -
$ : (12) -
$ LOAD _ PATH (12) - + (12)
-
/ (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (24)
- == (12)
- === (12)
- DOSISH 対応 (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 3
. 1 . 0 (4) - Pathname (12)
- Rubyの起動 (7)
- [] (12)
- absolute? (12)
-
absolute
_ path (36) -
absolute
_ path? (6) - application (12)
- application= (12)
- ascend (24)
- atime (12)
-
backtrace
_ locations (24) - basename (12)
- binread (24)
- binwrite (12)
-
body
_ stream (12) -
body
_ stream= (12) -
caller
_ locations (24) - chdir (36)
- children (28)
- chown (12)
- chroot (12)
- cleanpath (12)
- compile (12)
-
compile
_ file (12) - confstr (12)
- convpath (12)
-
create
_ makefile (12) -
create
_ rule (12) - ctime (12)
- delete (24)
-
delete
_ all (12) - descend (24)
- dirname (12)
- each (24)
-
each
_ child (56) -
each
_ entry (15) -
each
_ filename (12) -
each
_ line (24) - empty? (18)
- entries (36)
- eql? (12)
- exec (48)
- execute (24)
- exists? (9)
-
family
_ addrinfo (24) - fdatasync (12)
- filename (12)
-
find
_ class _ path (12) - first (12)
- fnmatch (24)
- fnmatch? (12)
-
for
_ fd (3) - foreach (96)
- formatter (12)
- gem (12)
- get (24)
- get2 (24)
-
get
_ print (24) -
get
_ text (12) - getwd (12)
- glob (40)
- head (12)
- head2 (24)
- home (24)
- inspect (36)
- join (36)
-
lib
_ dirs _ for (12) - load (12)
- logger (12)
- match (12)
- mkdir (12)
- mkpath (12)
- mountpoint? (12)
-
net
/ http (12) - new (123)
- open (126)
-
original
_ dir (24) -
package
_ dir _ path (12) - parent (12)
- parse (12)
-
parse
_ file (10) - pathconf (12)
- pathmap (12)
- post (24)
- post2 (24)
-
program
_ name (12) -
program
_ name= (12) - pwd (12)
-
rake
/ gempackagetask (12) - rdoc (12)
- read (12)
-
read
_ body (24) - readlines (48)
- readlink (12)
- realdirpath (12)
- realpath (36)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ entry (12) - reopen (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
require
_ relative (12) -
resolve
_ feature _ path (1) - rmdir (12)
- root? (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ security (12) -
search
_ convpath (12) -
send
_ request (12) -
set
_ backtrace (12) - size? (12)
-
source
_ location (12) - spawn (48)
- split (36)
- sub (24)
-
sub
_ ext (12) - sysopen (12)
- system (48)
- table (12)
-
test
/ unit (1) - text (12)
-
to
_ a (24) -
to
_ json (12) -
to
_ path (27) -
to
_ s (24) - truncate (12)
- unlink (24)
-
world
_ readable? (12) -
world
_ writable? (12) - write (24)
- xpath (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # path -> String (27219.0) -
self が表す命令シーケンスの相対パスを返します。
...= RubyVM::InstructionSequence.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 = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
Thread
:: Backtrace :: Location # path -> String (27219.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... -
test
/ unit (26078.0) -
ユニットテストを行うためのライブラリです。
... Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/
なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある訳ではありません。
Ruby......ています。
* Rubyのテスティングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html
=== 使い方
Test::Unit は以下のように......status [TYPE] Show status of jobs every file; Disabled when --jobs isn't specified.
-j, --jobs N Allow run tests with N jobs at once
--no-retry Don't retry running testcase when --jobs specified
--ruby VAL Path... -
File
. path(filename) -> String (24283.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"
//}... -
IO
# path -> String | nil (24232.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"
//}... -
Net
:: HTTPGenericRequest # path -> String (24229.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 (24226.0) -
オープン時に使用したパスを文字列で返します。
...stants::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::T......MPFILE){|f| f.path } #=> "/tmp"
//}......or 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?)
//}... -
Dir
# path -> String (24220.0) -
オープンしているディレクトリのパス名を文字列で返します。
...オープンしているディレクトリのパス名を文字列で返します。
//emlist[例][ruby]{
Dir.open("..") do |d|
d.path # => ".."
d.to_path # => ".."
end
//}... -
TracePoint
# path -> String (24219.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
//}... -
WIN32OLE
_ TYPELIB # path -> String (24213.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(まれにOLB)という独立したファ...