726件ヒット
[1-100件を表示]
(0.175秒)
ライブラリ
- ビルトイン (176)
- json (22)
- objspace (22)
- resolv (11)
-
rexml
/ document (11) - rss (44)
-
rubygems
/ config _ file (33) -
rubygems
/ source _ index (154) -
rubygems
/ source _ info _ cache (198)
クラス
- Binding (6)
-
Encoding
:: Converter (88) -
Encoding
:: InvalidByteSequenceError (11) -
Encoding
:: UndefinedConversionError (11) -
Gem
:: ConfigFile (33) -
Gem
:: SourceIndex (154) -
Gem
:: SourceInfoCache (198) - Method (11)
- Module (5)
- Proc (11)
-
REXML
:: AttlistDecl (11) -
RSS
:: Maker :: ItemsBase :: ItemBase (44) -
Resolv
:: DNS :: Resource :: TXT (11) -
RubyVM
:: InstructionSequence (22) - UnboundMethod (11)
モジュール
-
Gem
:: LocalRemoteOptions (11) - JSON (11)
-
JSON
:: Generator :: GeneratorMethods :: String (11) - ObjectSpace (22)
キーワード
-
DEFAULT
_ UPDATE _ SOURCES (11) -
add
_ spec (11) -
add
_ update _ sources _ option (11) -
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
cache
_ data (22) - categories (11)
- compile (11)
-
const
_ source _ location (5) - data (11)
-
destination
_ encoding (22) - each (11)
- enclosure (11)
-
find
_ name (11) -
from
_ installed _ gems (11) -
gem
_ signature (11) - guid (11)
-
index
_ signature (11) -
latest
_ cache _ data (11) -
latest
_ cache _ file (11) -
latest
_ specs (11) -
latest
_ system _ cache _ file (22) -
latest
_ user _ cache _ file (22) -
load
_ specification (11) -
mark
_ source _ filename (11) - new (66)
- outdated (11)
- parse! (11)
-
primitive
_ convert (44) - rdoc (11)
-
read
_ all _ cache _ data (11) -
read
_ cache _ data (11) -
remove
_ spec (11) -
reset
_ cache _ data (11) -
reset
_ cache _ for (11) -
rubygems
/ commands / specification _ command (11) - search (33)
-
search
_ convpath (11) -
search
_ with _ source (11) -
set
_ cache _ data (11) -
source
_ location (39) - specification (11)
-
sweep
_ source _ filename (11) -
to
_ json _ raw _ object (11) -
try
_ file (11) - update (22)
-
update
_ sources (11) -
update
_ sources= (11)
検索結果
先頭5件
-
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (24406.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (24406.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
RSS
:: Maker :: ItemsBase :: ItemBase # source (24101.0) -
@todo
@todo -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (21316.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Binding
# source _ location -> [String , Integer] (21307.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (18367.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...スコードのファイル名と行番号を配列で返します。
@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指......す。
//emlist[例][ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end
module M # line 6
C3 = 3
end
class B < A # line 10
include M
C4 = 4
end
class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end
p 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') # => ["tes... -
Proc
# source _ location -> [String , Integer] | nil (18331.0) -
ソースコードのファイル名と行番号を配列で返します。
...nil を返します。
//emlist[例][ruby]{
# /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 (18325.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 (18319.0) -
ソースコードのファイル名と行番号を配列で返します。
...nil を返します。
@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
:: SourceIndex # index _ signature -> String (18300.0) -
ソースインデックスの SHA256 ダイジェストを返します。
ソースインデックスの SHA256 ダイジェストを返します。
この値はインデックスが変更されると変化します。 -
ObjectSpace
. # allocation _ sourcefile(object) -> String (18300.0) -
objectの元となったソースファイル名を返します。
...ない場合はnilを返します。
//emlist[例:test.rbというファイルで下記のスクリプトを実行した場合][ruby]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSp......ace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop...