613件ヒット
[1-100件を表示]
(0.080秒)
ライブラリ
- ビルトイン (163)
-
cgi
/ html (24) - e2mmap (6)
-
irb
/ context (24) - json (24)
- mkmf (24)
-
net
/ smtp (12) -
rdoc
/ context (24) -
rdoc
/ top _ level (12) - rss (60)
-
rubygems
/ config _ file (24) -
rubygems
/ gem _ path _ searcher (36) -
rubygems
/ source _ index (60) -
rubygems
/ source _ info _ cache (24) -
webrick
/ httpresponse (12) - win32ole (12)
クラス
- Binding (7)
-
Encoding
:: Converter (72) -
Encoding
:: UndefinedConversionError (24) -
Gem
:: ConfigFile (24) -
Gem
:: GemPathSearcher (36) -
Gem
:: SourceIndex (60) -
Gem
:: SourceInfoCache (24) -
IRB
:: Context (24) -
JSON
:: Parser (12) -
JSON
:: State (12) - Method (12)
- Module (12)
-
Net
:: SMTP (12) - Proc (12)
-
RDoc
:: Context (24) -
RDoc
:: Options (48) -
RDoc
:: TopLevel (12) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source (24) -
RSS
:: Rss :: Channel :: Item :: Source (24) -
RSS
:: TaxonomyTopicsModel :: TaxonomyTopics (12) - Rational (12)
- UnboundMethod (12)
-
WEBrick
:: HTTPResponse (12) -
WIN32OLE
_ TYPE (12)
モジュール
-
CGI
:: HtmlExtension (24) - Exception2MessageMapper (6)
-
Gem
:: LocalRemoteOptions (24) - Kernel (24)
キーワード
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ source _ option (12) -
add
_ spec (12) -
add
_ update _ sources _ option (12) -
check
_ circular? (12) - coerce (12)
-
const
_ source _ location (12) - content (24)
- content= (24)
- convert (12)
-
def
_ exception (6) -
default
_ event _ sources (12) - find (12)
-
find
_ all (12) -
find
_ name (12) -
force
_ output (12) -
force
_ output= (12) -
force
_ update (12) - img (12)
-
init
_ gemspecs (12) -
inline
_ source (12) -
primitive
_ convert (48) - rc? (12)
- rcptto (12)
-
remove
_ spec (12) - resources (12)
- search (24)
-
search
_ with _ source (12) - source (12)
-
source
_ encoding (24) -
source
_ encoding _ name (12) -
source
_ location (43) - specification (12)
- status (12)
-
try
_ link (24) -
update
_ sources (12) -
update
_ sources= (12)
検索結果
先頭5件
-
IRB
:: Context # rc -> bool (21103.0) -
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
...~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
@return 設定ファイルの読み込みを行う場合は true を返します。行わない場
合(irb の起動時に -f オプションを指定した場合)は false を返しま... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (18301.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...B.const_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... -
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (15301.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返......します。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。... -
Gem
:: LocalRemoteOptions # add _ source _ option (15201.0) -
オプション --source を追加します。
...オプション --source を追加します。... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (15201.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Binding
# source _ location -> [String , Integer] (12201.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
Method
# source _ location -> [String , Integer] | nil (12201.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
//}... -
Proc
# source _ location -> [String , Integer] | nil (12201.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 (12201.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...