925件ヒット
[1-100件を表示]
(0.029秒)
ライブラリ
- ビルトイン (271)
- json (96)
- objspace (24)
-
rexml
/ document (12) - rss (60)
-
rubygems
/ config _ file (36) -
rubygems
/ exceptions (12) -
rubygems
/ source _ index (84) -
rubygems
/ source _ info _ cache (36) - socket (144)
-
win32
/ registry (36) - win32ole (12)
クラス
- Binding (7)
-
Encoding
:: Converter (132) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (36) -
Gem
:: ConfigFile (36) -
Gem
:: SourceIndex (84) -
Gem
:: SourceInfoCache (36) -
JSON
:: Parser (36) - Method (12)
- Module (12)
- Proc (12)
-
RDoc
:: Options (12) -
REXML
:: Document (12) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source (24) -
RSS
:: Rss :: Channel :: Item :: Source (24) -
RSS
:: TaxonomyTopicsModel :: TaxonomyTopics (12) -
RubyVM
:: InstructionSequence (24) - UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
-
Gem
:: LocalRemoteOptions (24) - JSON (48)
-
JSON
:: Generator :: GeneratorMethods :: String (12) - ObjectSpace (24)
-
Socket
:: Constants (144) -
Win32
:: Registry :: Constants (36)
キーワード
-
DEFAULT
_ UPDATE _ SOURCES (12) -
IP
_ ADD _ SOURCE _ MEMBERSHIP (12) -
IP
_ BLOCK _ SOURCE (12) -
IP
_ DROP _ SOURCE _ MEMBERSHIP (12) -
IP
_ MSFILTER (12) -
IP
_ UNBLOCK _ SOURCE (12) -
MCAST
_ BLOCK _ SOURCE (12) -
MCAST
_ EXCLUDE (12) -
MCAST
_ INCLUDE (12) -
MCAST
_ JOIN _ SOURCE _ GROUP (12) -
MCAST
_ LEAVE _ SOURCE _ GROUP (12) -
MCAST
_ MSFILTER (12) -
MCAST
_ UNBLOCK _ SOURCE (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
REG
_ FULL _ RESOURCE _ DESCRIPTOR (12) -
REG
_ RESOURCE _ LIST (12) -
REG
_ RESOURCE _ REQUIREMENTS _ LIST (12) - RemoteSourceException (12)
- UndefinedConversionError (12)
-
add
_ source _ option (12) -
add
_ spec (12) -
add
_ update _ sources _ option (12) -
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - compile (12)
-
const
_ source _ location (12) - content (24)
- content= (24)
- convert (12)
-
default
_ event _ sources (12) -
destination
_ encoding (24) -
find
_ name (12) -
inline
_ source (12) - irb (12)
- load (12)
-
load
_ specification (12) - new (84)
- parse (24)
- parse! (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) -
rb
_ source _ filename (12) - rdoc (12)
-
remove
_ spec (12) - resources (12)
- restore (12)
-
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / specification _ command (12) - search (36)
-
search
_ convpath (12) -
search
_ with _ source (12) -
source
_ encoding (24) -
source
_ encoding _ name (12) -
source
_ location (43) - specification (12)
-
to
_ json _ raw _ object (12) -
update
_ sources (12) -
update
_ sources= (12)
検索結果
先頭5件
-
JSON
:: Parser # source -> String (21107.0) -
現在のソースのコピーを返します。
...現在のソースのコピーを返します。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
#... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (18367.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
:: LocalRemoteOptions # add _ source _ option (15217.0) -
オプション --source を追加します。
...オプション --source を追加します。... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (15216.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Proc
# source _ location -> [String , Integer] | nil (12231.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 (12225.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 (12219.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
//}... -
Binding
# source _ location -> [String , Integer] (12207.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
ObjectSpace
. # allocation _ sourcefile(object) -> String (12200.0) -
objectの元となったソースファイル名を返します。
...uire 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop...