別のキーワード
種類
- インスタンスメソッド (1481)
- 特異メソッド (497)
- モジュール関数 (100)
ライブラリ
- ビルトイン (614)
- bigdecimal (24)
-
cgi
/ html (24) - logger (6)
-
net
/ http (12) -
net
/ imap (24) -
net
/ smtp (12) - objspace (24)
- open3 (24)
- openssl (276)
- pathname (12)
- rake (108)
-
rubygems
/ dependency _ list (24) -
rubygems
/ indexer (12) -
rubygems
/ package / tar _ input (12) -
rubygems
/ requirement (12) -
rubygems
/ security (24) -
rubygems
/ source _ index (84) -
rubygems
/ source _ info _ cache (24) -
rubygems
/ specification (576) - shell (30)
-
shell
/ command-processor (30) -
shell
/ filter (42) - stringio (12)
- strscan (12)
-
webrick
/ httpauth / basicauth (12) -
webrick
/ httpauth / digestauth (12)
クラス
- Array (108)
- BigDecimal (24)
- File (12)
- Float (9)
-
Gem
:: DependencyList (24) -
Gem
:: Indexer (12) -
Gem
:: Package :: TarInput (12) -
Gem
:: Requirement (12) -
Gem
:: SourceIndex (84) -
Gem
:: SourceInfoCache (24) -
Gem
:: Specification (576) - Hash (20)
- IO (180)
- Integer (12)
-
Logger
:: Application (6) - Module (24)
-
Net
:: HTTP (12) -
Net
:: IMAP (24) -
Net
:: SMTP (12) - Object (12)
-
OpenSSL
:: OCSP :: CertificateId (36) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: X509 :: Certificate (168) -
OpenSSL
:: X509 :: ExtensionFactory (24) - Pathname (12)
-
Rake
:: Application (24) -
Rake
:: InvocationChain (48) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: Task (12) - Rational (12)
- Shell (30)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (42) - String (21)
- StringIO (12)
- StringScanner (12)
- Thread (24)
-
WEBrick
:: HTTPAuth :: BasicAuth (12) -
WEBrick
:: HTTPAuth :: DigestAuth (12)
モジュール
-
CGI
:: HtmlExtension (24) - Comparable (12)
- Enumerable (96)
-
Gem
:: Security (24) - Kernel (52)
- ObjectSpace (24)
- Open3 (24)
- Rake (12)
- Warning (20)
キーワード
- [] (6)
- []= (6)
-
_ load (12) - abbreviate (12)
-
add
_ authenticator (12) -
add
_ bindir (12) -
add
_ certificate (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ extension (12) -
add
_ loader (12) -
add
_ runtime _ dependency (12) -
add
_ spec (12) - all? (45)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - any? (48)
- append (36)
- application= (24)
-
array
_ attribute (12) -
attribute
_ alias _ singular (12) - attributes (12)
- authenticate (48)
-
backtrace
_ locations (24) - between? (12)
- bindir= (12)
-
build
_ cert (12) -
caller
_ locations (24) - catch (24)
- cert= (24)
-
cert
_ chain= (12) - certificates= (12)
-
check
_ private _ key (12) -
close
_ on _ exec= (12) - cmp (12)
-
cmp
_ issuer (12) - concat (66)
-
const
_ source _ location (12) - date= (12)
-
default
_ executable= (12) -
default
_ value (12) -
deprecate
_ constant (12) - description= (12)
- each (6)
- echo (18)
- email= (12)
- executable= (12)
- executables= (12)
- extensions= (24)
-
extra
_ chain _ cert= (12) -
extra
_ rdoc _ files= (12) -
fetch
_ values (20) - files= (12)
-
find
_ name (24) - form (24)
-
from
_ installed _ gems (12) -
from
_ yaml (12) - glob (18)
- homepage= (12)
-
instance
_ variable _ defined? (12) - issuer= (12)
-
issuer
_ certificate= (12) - level= (1)
- load (12)
-
load
_ gemspec (12) -
load
_ specification (12) - loaded= (12)
-
loaded
_ from= (12) - log (2)
- log= (1)
- member? (12)
- name= (12)
- new (61)
- none? (45)
-
normalize
_ yaml _ input (12) -
not
_ after= (12) -
not
_ before= (12) - one? (45)
-
original
_ platform= (12) -
overwrite
_ accessor (12) -
pipeline
_ rw (24) - platform= (12)
- popen (168)
-
public
_ key= (12) -
read
_ only (12) -
remove
_ by _ name (12) -
require
_ path= (12) -
require
_ paths= (12) -
required
_ attribute (12) -
required
_ attribute? (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version= (12) - requirements= (12)
-
rubygems
_ version= (12) -
satisfies
_ requirement? (12) - search (36)
- serial= (12)
-
set
_ log (1) - sign (12)
-
sign
_ cert (12) -
signing
_ key= (12) - specification (12)
-
specification
_ version= (12) - subject= (12)
-
subject
_ certificate= (12) - summary= (12)
- tee (18)
-
test
_ files= (12) -
test
_ suite _ file= (12) - truncate (111)
-
tty
_ output= (12) - verify (12)
- version= (24)
- warn (12)
- | (6)
検索結果
先頭5件
-
Shell
# cat(*files) -> Shell :: Filter (18119.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (18119.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (18119.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|... -
Gem
:: Specification # specification _ version=(version) (9106.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
...この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY... -
Kernel
. # caller _ locations(range) -> [Thread :: Backtrace :: Location] | nil (6218.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得した......by]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil)
# => [......(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9, 13]
# => ["/Users/user/test.rb", "/Users/user/test.rb"]
test3(2, 1)
# => ["/Users/user/test.rb:13:in `test3'"]
# => [13]
# => ["/Users/user/test.rb"]
//}
@see Thread::Backtrace::Location, Kernel.#caller... -
Kernel
. # caller _ locations(start = 1 , length = nil) -> [Thread :: Backtrace :: Location] | nil (6218.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得した......by]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil)
# => [......(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9, 13]
# => ["/Users/user/test.rb", "/Users/user/test.rb"]
test3(2, 1)
# => ["/Users/user/test.rb:13:in `test3'"]
# => [13]
# => ["/Users/user/test.rb"]
//}
@see Thread::Backtrace::Location, Kernel.#caller... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (6218.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...ースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレー......ムの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { s......leep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (6218.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...ースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレー......ムの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { s......leep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Net
:: IMAP . add _ authenticator(auth _ type , authenticator) -> () (6212.0) -
Net::IMAP#authenticate で使う 認証用クラスを設定します。
...enticate で使う
認証用クラスを設定します。
imap ライブラリに新たな認証方式を追加するために用います。
通常は使う必要はないでしょう。もしこれを用いて
認証方式を追加する場合は net/imap.rb の
Net::IMAP::LoginAuthenticator......などを参考にしてください。
@param auth_type 認証の種類(文字列)
@param authenticator 認証クラス(Class オブジェクト)... -
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (6206.0) -
指定された名前の Gem::Specification オブジェクトを返します。
...指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。...