ライブラリ
- ビルトイン (576)
- bigdecimal (22)
-
cgi
/ html (22) - csv (11)
- logger (7)
-
minitest
/ unit (1) -
net
/ http (33) -
net
/ imap (11) -
net
/ smtp (11) - openssl (550)
- pathname (11)
- rake (209)
-
rake
/ gempackagetask (11) -
rdoc
/ context (11) - rss (264)
-
rubygems
/ dependency _ list (33) -
rubygems
/ format (11) -
rubygems
/ gem _ path _ searcher (33) -
rubygems
/ indexer (22) -
rubygems
/ installer (22) -
rubygems
/ old _ format (11) -
rubygems
/ package / tar _ input (22) -
rubygems
/ requirement (11) -
rubygems
/ source _ index (55) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (1067) -
rubygems
/ uninstaller (11) - shell (24)
-
shell
/ builtin-command (12) -
shell
/ command-processor (36) -
shell
/ filter (36) - stringio (11)
- strscan (11)
-
webrick
/ httpauth / authenticator (33) -
webrick
/ httpauth / basicauth (11) -
webrick
/ httpauth / digestauth (11) -
webrick
/ https (22)
クラス
-
ARGF
. class (11) - Array (82)
- BigDecimal (22)
- Binding (6)
- CSV (11)
- Encoding (11)
-
Enumerator
:: Lazy (22) - Exception (11)
- File (11)
- Float (11)
-
Gem
:: DependencyList (33) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (33) -
Gem
:: Indexer (22) -
Gem
:: Installer (22) -
Gem
:: OldFormat (11) -
Gem
:: Package :: TarInput (22) -
Gem
:: Requirement (11) -
Gem
:: SourceIndex (55) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (1067) -
Gem
:: Uninstaller (11) - Integer (11)
-
Logger
:: Application (7) - Method (11)
-
MiniTest
:: Unit (1) - Module (14)
-
Net
:: HTTP (33) -
Net
:: IMAP (11) -
Net
:: SMTP (11) - Numeric (11)
- Object (11)
-
OpenSSL
:: OCSP :: BasicResponse (11) -
OpenSSL
:: OCSP :: CertificateId (33) -
OpenSSL
:: OCSP :: Request (11) -
OpenSSL
:: PKCS12 (22) -
OpenSSL
:: PKCS7 (33) -
OpenSSL
:: SSL :: SSLContext (55) -
OpenSSL
:: SSL :: SSLSocket (33) -
OpenSSL
:: X509 :: Certificate (275) -
OpenSSL
:: X509 :: ExtensionFactory (44) -
OpenSSL
:: X509 :: Store (11) -
OpenSSL
:: X509 :: StoreContext (22) - Pathname (11)
- Proc (11)
-
RDoc
:: Context (11) -
RSS
:: Maker :: ChannelBase (11) -
RSS
:: Maker :: ChannelBase :: CategoriesBase (11) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (44) -
RSS
:: Maker :: ItemsBase :: ItemBase (11) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Categories (11) -
RSS
:: Rss :: Channel (33) -
RSS
:: Rss :: Channel :: Item (33) -
RSS
:: Rss :: Channel :: Item :: Category (44) -
Rake
:: Application (121) -
Rake
:: GemPackageTask (11) -
Rake
:: InvocationChain (33) -
Rake
:: InvocationChain :: EmptyInvocationChain (33) -
Rake
:: Task (22) - Rational (11)
- Shell (24)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (36) -
Shell
:: Concat (6) -
Shell
:: Filter (36) - String (19)
- StringIO (11)
- StringScanner (11)
- Thread (22)
-
Thread
:: Backtrace :: Location (77) - UnboundMethod (11)
-
WEBrick
:: HTTPAuth :: BasicAuth (11) -
WEBrick
:: HTTPAuth :: DigestAuth (11) -
WEBrick
:: HTTPRequest (22)
モジュール
-
CGI
:: HtmlExtension (22) - Comparable (11)
- Enumerable (188)
-
RSS
:: SyndicationModel (66) -
WEBrick
:: HTTPAuth :: Authenticator (33) - Warning (3)
キーワード
-
_ dump (11) - abbreviate (11)
-
absolute
_ path (11) -
add
_ bindir (11) -
add
_ certificate (11) -
add
_ dependency (11) -
add
_ development _ dependency (11) -
add
_ extension (11) -
add
_ loader (11) -
add
_ runtime _ dependency (11) -
add
_ spec (11) - all? (27)
- any? (42)
- append (22)
- application (11)
- application= (11)
- appname (1)
-
assign
_ defaults (11) - authenticate (44)
- autorequire (11)
- autorequire= (11)
-
backtrace
_ locations (33) -
base
_ label (11) - between? (11)
- bindir (11)
- bindir= (11)
-
ca
_ certs (11) - categories (33)
- category (22)
- category= (22)
- cert (33)
- cert= (22)
-
cert
_ chain (11) -
cert
_ chain= (11) - certid (11)
- certificate (11)
- certificates (11)
- certificates= (11)
- chain (22)
-
check
_ private _ key (11) -
client
_ ca (11) -
client
_ cert (11) - cmp (11)
-
cmp
_ issuer (11) - collect (22)
-
collect
_ concat (33) - concat (78)
-
const
_ source _ location (5) - content (22)
- content= (22)
-
current
_ cert (11) - date (11)
- date= (11)
-
default
_ executable (11) -
default
_ executable= (11) - dependencies (11)
-
dependency
_ order (11) -
dependent
_ gems (11) -
deprecate
_ constant (9) - description (11)
- description= (11)
-
development
_ dependencies (11) - domain (22)
- domain= (22)
- each (18)
- echo (18)
- email (11)
- email= (11)
- enclosure (11)
- executable (11)
- executable= (11)
- executables (11)
- executables= (11)
- extensions (22)
- extensions= (22)
-
extra
_ chain _ cert (11) -
extra
_ chain _ cert= (11) -
extra
_ rdoc _ files (11) -
extra
_ rdoc _ files= (11) -
file
_ name (11) - files (11)
- files= (11)
- find (11)
-
find
_ all (11) -
find
_ name (22) -
flat
_ map (33) - form (22)
-
full
_ gem _ path (11) -
full
_ name (11) -
gem
_ spec (11) - glob (18)
-
has
_ rdoc (11) -
has
_ rdoc= (11) -
has
_ rdoc? (11) -
has
_ test _ suite? (11) -
has
_ unit _ tests? (11) - homepage (11)
- homepage= (11)
- init (11)
-
init
_ gemspecs (11) -
inplace
_ mode (11) - inspect (11)
- install (11)
-
installation
_ path (11) -
instance
_ variable _ defined? (11) - issuer (11)
- issuer= (11)
-
issuer
_ certificate (11) -
issuer
_ certificate= (11) - label (11)
- level= (1)
-
lib
_ files (11) - lineno (11)
-
load
_ gemspec (11) -
load
_ rakefile (11) - loaded= (11)
- loaded? (11)
-
loaded
_ from (11) -
loaded
_ from= (11) - location (1)
- log (2)
- log= (1)
- logger (11)
- map (22)
-
mark
_ version (11) - member? (22)
- name (22)
- name= (11)
-
new
_ category (22) - none? (47)
- normalize (11)
-
not
_ after (11) -
not
_ after= (11) -
not
_ before (11) -
not
_ before= (11) - one? (47)
-
original
_ dir (11) -
original
_ name (11) -
original
_ platform (11) -
original
_ platform= (11) - path (11)
-
peer
_ cert (22) -
peer
_ cert _ chain (11) - platform (11)
- platform= (11)
-
public
_ key (11) -
public
_ key= (11) - rakefile (11)
- realm (11)
-
record
_ location (11) -
remove
_ by _ name (11) -
remove
_ spec (11) - replicate (11)
-
require
_ path (11) -
require
_ path= (11) -
require
_ paths (11) -
require
_ paths= (11) -
required
_ ruby _ version (11) -
required
_ ruby _ version= (11) -
required
_ rubygems _ version (11) -
required
_ rubygems _ version= (11) - requirements (11)
- requirements= (11)
-
rubygems
_ version (11) -
rubygems
_ version= (11) - run (11)
-
runtime
_ dependencies (11) - sanitize (11)
-
satisfies
_ requirement? (11) - search (22)
- serial (22)
- serial= (11)
-
server
_ cert (11) -
set
_ log (1) - sign (11)
-
signature
_ algorithm (11) -
signing
_ key (11) -
signing
_ key= (11) -
source
_ location (39) - spec (44)
- specification (11)
-
specification
_ version (11) -
specification
_ version= (11) - start (1)
- status (11)
- subject (11)
- subject= (11)
-
subject
_ certificate (11) -
subject
_ certificate= (11) - summary (11)
- summary= (11)
-
sy
_ updateBase (11) -
sy
_ updateBase= (11) -
sy
_ updateFrequency (11) -
sy
_ updateFrequency= (11) -
sy
_ updatePeriod (11) -
sy
_ updatePeriod= (11) - tee (6)
-
test
_ file (11) -
test
_ file= (11) -
test
_ files (11) -
test
_ files= (11) -
test
_ suite _ file (11) -
test
_ suite _ file= (11) -
to
_ a (6) -
to
_ der (11) -
to
_ pem (11) -
to
_ ruby (11) -
to
_ s (44) -
to
_ text (11) -
top
_ level (11) -
top
_ level _ tasks (11) - truncate (128)
-
tty
_ output= (11) - userdb (11)
- validate (11)
- verify (11)
- version (22)
- version= (22)
- warn (3)
-
yaml
_ initialize (11)
検索結果
先頭5件
-
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (27220.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|
e......cho(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (24701.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...on#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.n......0, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get......_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Gem
:: Specification # specification _ version -> Integer (24301.0) -
この Gem パッケージに用いられている gemspec のバージョンを返します。
この Gem パッケージに用いられている gemspec のバージョンを返します。 -
Gem
:: Specification # specification _ version=(version) (24301.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
...この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY... -
WEBrick
:: HTTPAuth :: BasicAuth # authenticate(request , response) -> bool (24301.0) -
クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。
...す。
認証に失敗した場合は challenge を呼びます。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合... -
WEBrick
:: HTTPAuth :: DigestAuth # authenticate(request , response) -> true (24301.0) -
クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。
...す。
認証に失敗した場合は challenge を呼びます。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (21701.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...トレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフ......@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrac......e_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 (21701.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...トレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフ......@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrac......e_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Enumerator
:: Lazy # collect _ concat {|item| . . . } -> Enumerator :: Lazy (21419.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
...とつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x は、以下の場合にの......か、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) とき
それ以外のときは、x は分解されず、そのままの値として使われます。
//emlist[][ruby]{
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:......b=>2}]
//}
@raise ArgumentError ブロックを指定しなかった場合に発生します。
@see Enumerable#flat_map... -
OpenSSL
:: X509 :: Certificate # extensions -> [OpenSSL :: X509 :: Extension] (21401.0) -
証明書の拡張領域の内容を返します。
証明書の拡張領域の内容を返します。