ライブラリ
- ビルトイン (282)
- bigdecimal (11)
-
cgi
/ html (22) - e2mmap (6)
- erb (11)
-
irb
/ cmd / load (11) -
irb
/ context (22) - json (22)
- matrix (11)
- mkmf (121)
-
net
/ imap (66) -
net
/ smtp (44) - openssl (11)
- rake (11)
-
rdoc
/ context (22) -
rdoc
/ top _ level (11) - resolv (242)
- rss (264)
-
rubygems
/ commands / dependency _ command (11) -
rubygems
/ config _ file (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ gem _ path _ searcher (66) -
rubygems
/ indexer (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (231) -
rubygems
/ source _ info _ cache (231) -
rubygems
/ source _ info _ cache _ entry (33) -
rubygems
/ spec _ fetcher (22) -
shell
/ filter (6) - socket (22)
- strscan (11)
- uri (44)
-
webrick
/ httpresponse (11) - win32ole (33)
- zlib (11)
クラス
- Array (40)
- BigDecimal (11)
- Binding (6)
- Class (11)
- Complex (11)
- ERB (11)
-
Encoding
:: Converter (66) -
Encoding
:: InvalidByteSequenceError (22) -
Encoding
:: UndefinedConversionError (22) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: ConfigFile (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: GemPathSearcher (66) -
Gem
:: Indexer (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (231) -
Gem
:: SourceInfoCache (231) -
Gem
:: SourceInfoCacheEntry (33) -
Gem
:: SpecFetcher (22) -
IRB
:: Context (22) -
IRB
:: ExtendCommand :: Source (11) -
JSON
:: Parser (11) -
JSON
:: State (11) - Matrix (11)
- Method (11)
- Module (5)
-
Net
:: IMAP (66) -
Net
:: SMTP (44) - Numeric (11)
-
OpenSSL
:: Cipher (11) - Proc (11)
-
RDoc
:: Context (22) -
RDoc
:: Options (44) -
RDoc
:: TopLevel (11) -
RSS
:: ImageItemModel :: ImageItem (22) -
RSS
:: Maker :: ItemsBase :: ItemBase (11) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source (44) -
RSS
:: RDF :: Channel :: Image (22) -
RSS
:: RDF :: Channel :: Items (11) -
RSS
:: RDF :: Channel :: Textinput (22) -
RSS
:: Rss :: Channel :: Item (22) -
RSS
:: Rss :: Channel :: Item :: Source (44) -
RSS
:: TaxonomyTopicsModel :: TaxonomyTopics (11) -
RSS
:: TrackBackModel10 :: TrackBackPing (22) -
Rake
:: Task (11) - Range (22)
- Rational (11)
- Regexp (11)
-
Resolv
:: DNS :: Resource :: DomainName (11) -
Resolv
:: DNS :: Resource :: HINFO (22) -
Resolv
:: DNS :: Resource :: IN :: A (11) -
Resolv
:: DNS :: Resource :: IN :: AAAA (11) -
Resolv
:: DNS :: Resource :: IN :: SRV (44) -
Resolv
:: DNS :: Resource :: IN :: WKS (33) -
Resolv
:: DNS :: Resource :: MINFO (22) -
Resolv
:: DNS :: Resource :: MX (11) -
Resolv
:: DNS :: Resource :: SOA (55) -
Resolv
:: DNS :: Resource :: TXT (22) -
Shell
:: Filter (6) -
Socket
:: UDPSource (22) - String (11)
- StringScanner (11)
-
URI
:: Generic (44) - UnboundMethod (11)
-
WEBrick
:: HTTPResponse (11) -
WIN32OLE
_ TYPE (33) -
Zlib
:: GzipFile (11)
モジュール
-
CGI
:: HtmlExtension (22) - DublinCoreModel (33)
- Exception2MessageMapper (6)
-
Gem
:: LocalRemoteOptions (22) - Kernel (121)
キーワード
- - (11)
- < (6)
-
add
_ class (11) -
add
_ class _ or _ module (22) -
add
_ source _ option (11) -
add
_ spec (11) -
add
_ specs (11) -
add
_ update _ sources _ option (11) - address (33)
- bitmap (11)
- bsearch (44)
-
bsearch
_ index (18) -
cache
_ data (11) -
cache
_ file (11) -
check
_ circular? (11) - coerce (66)
-
collect
_ specs (11) -
const
_ source _ location (5) - content (22)
- content= (22)
- convert (11)
- cpu (11)
- crc (11)
-
create
_ makefile (11) -
create
_ tmpsrc (11) - data (11)
-
dc
_ source (11) -
dc
_ source= (11) -
dc
_ sources (11) -
def
_ exception (6) -
default
_ event _ sources (11) - download (11)
-
dummy
_ makefile (11) - dump (11)
- each (22)
- emailbx (11)
- execute (11)
- expire (11)
-
fetch
_ spec (11) - find (11)
-
find
_ all (11) -
find
_ gems (11) -
find
_ gems _ with _ sources (11) -
find
_ name (11) - flush (11)
-
force
_ encoding (11) -
force
_ output (11) -
force
_ output= (11) -
force
_ update (11) -
gem
_ signature (11) - hierarchical? (11)
- img (11)
-
index
_ signature (11) -
init
_ gemspecs (11) -
inline
_ source (11) -
install
_ files (11) -
install
_ rb (11) -
latest
_ cache _ data (11) -
latest
_ cache _ file (11) -
latest
_ specs (11) -
latest
_ system _ cache _ file (11) -
latest
_ user _ cache _ file (11) - length (11)
-
lib
_ dirs _ for (11) -
load
_ gems _ in (11) -
load
_ specs (11) -
local
_ address (11) -
matching
_ file? (11) -
matching
_ files (11) - minimum (11)
- name (11)
- os (11)
- outdated (11)
-
pkcs5
_ keyivgen (11) - port (11)
- preference (11)
-
primitive
_ convert (44) - priority (11)
- protocol (11)
- rc? (11)
-
rcptto
_ list (11) -
read
_ all _ cache _ data (11) -
read
_ cache _ data (11) - refresh (33)
- refresh! (11)
-
remote
_ address (11) -
remove
_ spec (11) -
reset
_ cache _ data (11) -
reset
_ cache _ file (11) -
reset
_ cache _ for (11) - resource (44)
- resource= (44)
- resources (22)
- retry (11)
- rmailbx (11)
-
route
_ from (11) - search (33)
-
search
_ full (11) -
search
_ with _ source (11) -
send
_ mail (11) - sendmail (11)
- serial (11)
-
set
_ cache _ data (11) - size (33)
- sort (11)
- source (55)
- source= (11)
-
source
_ encoding (33) -
source
_ encoding _ name (22) -
source
_ index (11) -
source
_ location (39) -
source
_ ole _ types (11) -
spec
_ dirs (11) -
spec
_ dirs= (11) - specification (11)
- src (11)
-
src
_ type (11) - status (11)
- strings (11)
- superclass (11)
-
system
_ cache _ file (11) - target (11)
- thread (11)
-
try
_ compile (22) -
try
_ file (11) -
try
_ link (22) -
try
_ run (22) -
uid
_ search (11) -
uid
_ sort (11) -
uid
_ thread (11) - update (22)
-
update
_ sources (11) -
update
_ sources= (11) - url (22)
- url= (22)
-
user
_ cache _ file (11) - weight (11)
-
write
_ cache (11)
検索結果
先頭5件
-
String
# force _ encoding(encoding) -> self (15301.0) -
文字列の持つエンコーディング情報を指定された encoding に変えます。
...情報を指定された encoding に変えます。
このとき実際のエンコーディングは変換されず、検査もされません。
Array#pack などで得られたバイト列のエンコーディングを指定する時に使います。
@param encoding 変更するエンコー......文字列か Encoding オブジェクトを指定します。
//emlist[例][ruby]{
s = [164, 164, 164, 237, 164, 207].pack("C*")
p s.encoding #=> ASCII-8BIT
p s.force_encoding("EUC-JP") #=> "いろは"
p s.force_encoding(Encoding::EUC_JP) #......=> "いろは"
u = [12411, 12408, 12392].pack("U*")
u.force_encoding("UTF-8") #=> "ほへと"
u.force_encoding(Encoding::UTF_8) #=> "ほへと"
//}... -
Binding
# source _ location -> [String , Integer] (15201.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
Gem
:: DependencyInstaller # find _ gems _ with _ sources(dep) -> Array (15201.0) -
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。
...与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを
返します。
Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ロ... -
Gem
:: LocalRemoteOptions # add _ source _ option (15201.0) -
オプション --source を追加します。
...オプション --source を追加します。... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (15201.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Array
# bsearch _ index { |x| . . . } -> Integer | nil (12301.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch との違いは見つかった要......earch を参照してください。
//emlist[例: find-minimum モード][ruby]{
ary = [0, 4, 7, 10, 12]
ary.bsearch_index { |x| x >= 4 } # => 1
ary.bsearch_index { |x| x >= 6 } # => 2
ary.bsearch_index { |x| x >= -1 } # => 0
ary.bsearch_index { |x| x >= 100 } # => nil
//}
//emlist[例: find......-any モード][ruby]{
ary = [0, 4, 7, 10, 12]
# 4 <= v < 8 になる要素の位置を検索
ary.bsearch_index { |x| 1 - x / 4 } # => 2
# 8 <= v < 10 になる要素の位置を検索
ary.bsearch_index { |x| 4 - x / 2 } # => nil
//}
@see Array#bsearch... -
Array
# bsearch _ index -> Enumerator (12201.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch との違いは見つかった要......earch を参照してください。
//emlist[例: find-minimum モード][ruby]{
ary = [0, 4, 7, 10, 12]
ary.bsearch_index { |x| x >= 4 } # => 1
ary.bsearch_index { |x| x >= 6 } # => 2
ary.bsearch_index { |x| x >= -1 } # => 0
ary.bsearch_index { |x| x >= 100 } # => nil
//}
//emlist[例: find......-any モード][ruby]{
ary = [0, 4, 7, 10, 12]
# 4 <= v < 8 になる要素の位置を検索
ary.bsearch_index { |x| 1 - x / 4 } # => 2
# 8 <= v < 10 になる要素の位置を検索
ary.bsearch_index { |x| 4 - x / 2 } # => nil
//}
@see Array#bsearch... -
Gem
:: SourceIndex # index _ signature -> String (12201.0) -
ソースインデックスの SHA256 ダイジェストを返します。
ソースインデックスの SHA256 ダイジェストを返します。
この値はインデックスが変更されると変化します。 -
Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] (12201.0) -
引数で指定された条件を満たす Gem のリストを返します。
引数で指定された条件を満たす Gem のリストを返します。
@param gem_pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。 -
Gem
:: SourceInfoCache # search(pattern , platform _ only = false , all = false) -> [Gem :: Specification] (12201.0) -
与えられた条件を満たす Gem::Specification のリストを返します。
...与えられた条件を満たす Gem::Specification のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します......。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@see Gem::SourceIndex#search...