535件ヒット
[1-100件を表示]
(0.082秒)
ライブラリ
- ビルトイン (127)
- json (12)
- resolv (12)
- rss (48)
-
rubygems
/ config _ file (24) -
rubygems
/ source _ index (132) -
rubygems
/ source _ info _ cache (168)
クラス
- Binding (7)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) -
Gem
:: ConfigFile (24) -
Gem
:: SourceIndex (132) -
Gem
:: SourceInfoCache (168) - Method (12)
- Module (12)
- Proc (12)
-
RSS
:: Maker :: ItemsBase :: ItemBase (48) -
Resolv
:: DNS :: Resource :: TXT (12) - UnboundMethod (12)
モジュール
キーワード
-
add
_ spec (12) -
add
_ update _ sources _ option (12) -
cache
_ data (12) - categories (12)
-
const
_ source _ location (12) - data (12)
-
destination
_ encoding (24) - each (12)
- enclosure (12)
-
find
_ name (12) -
gem
_ signature (12) - guid (12)
-
index
_ signature (12) -
latest
_ cache _ data (12) -
latest
_ cache _ file (12) -
latest
_ specs (12) -
latest
_ system _ cache _ file (12) -
latest
_ user _ cache _ file (12) - outdated (12)
-
primitive
_ convert (48) -
read
_ all _ cache _ data (12) -
read
_ cache _ data (12) -
remove
_ spec (12) -
reset
_ cache _ data (12) -
reset
_ cache _ for (12) - search (24)
-
search
_ with _ source (12) -
set
_ cache _ data (12) -
source
_ location (43) - specification (12)
-
to
_ json _ raw _ object (12) -
try
_ file (12) - update (24)
-
update
_ sources (12) -
update
_ sources= (12)
検索結果
先頭5件
-
RSS
:: Maker :: ItemsBase :: ItemBase # source (18102.0) -
@todo
@todo -
Gem
:: SourceInfoCache # latest _ cache _ data -> Hash (15201.0) -
最新のキャッシュデータを返します。
最新のキャッシュデータを返します。 -
Gem
:: ConfigFile # update _ sources=(update _ sources) (12401.0) -
Gem::SourceInfoCache を毎回更新するかどうか設定します。
...Gem::SourceInfoCache を毎回更新するかどうか設定します。
@param update_sources 真を指定すると毎回 Gem::SourceInfoCache を更新します。... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (12268.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
..._source_location('C4') # => ["test.rb", 12]
p B.const_source_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]
p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない
p A.const_source_......location('C2') # => ["test.rb", 16] -- 最後に定義された位置を返す
p Object.const_source_location('B') # => ["test.rb", 10] -- Object はトップレベルの定数を検索する
p Object.const_source_location('A') # => ["test.rb", 1] -- クラスが再定義さ......を返す
p B.const_source_location('A') # => ["test.rb", 1] -- Object を継承している為
p M.const_source_location('A') # => ["test.rb", 1] -- Object は継承していないが追加で modules をチェックする
p Object.const_source_location('A::C1') # => ["t... -
Proc
# source _ location -> [String , Integer] | nil (12232.0) -
ソースコードのファイル名と行番号を配列で返します。
...by]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_location # => nil
//}
@see Method#source_location... -
UnboundMethod
# source _ location -> [String , Integer] | nil (12226.0) -
ソースコードのファイル名と行番号を配列で返します。
...nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
//}
@see Proc#source_location, Method#source_location... -
Method
# source _ location -> [String , Integer] | nil (12220.0) -
ソースコードのファイル名と行番号を配列で返します。
...。
@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil
//... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (12217.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Binding
# source _ location -> [String , Integer] (12208.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}...