709件ヒット
[1-100件を表示]
(0.074秒)
ライブラリ
- ビルトイン (242)
- json (88)
- objspace (22)
-
rexml
/ document (11) -
rubygems
/ config _ file (22) -
rubygems
/ source _ index (77) -
rubygems
/ source _ info _ cache (33) - socket (132)
- win32ole (11)
クラス
- Binding (6)
-
Encoding
:: Converter (121) -
Encoding
:: InvalidByteSequenceError (11) -
Encoding
:: UndefinedConversionError (33) -
Gem
:: ConfigFile (22) -
Gem
:: SourceIndex (77) -
Gem
:: SourceInfoCache (33) -
JSON
:: Parser (33) - Method (11)
- Module (5)
- Proc (11)
-
RDoc
:: Options (11) -
REXML
:: Document (11) -
RubyVM
:: InstructionSequence (22) - UnboundMethod (11)
-
WIN32OLE
_ TYPE (11)
モジュール
-
Gem
:: LocalRemoteOptions (11) - JSON (44)
-
JSON
:: Generator :: GeneratorMethods :: String (11) - ObjectSpace (22)
-
Socket
:: Constants (132)
キーワード
-
DEFAULT
_ UPDATE _ SOURCES (11) -
IP
_ ADD _ SOURCE _ MEMBERSHIP (11) -
IP
_ BLOCK _ SOURCE (11) -
IP
_ DROP _ SOURCE _ MEMBERSHIP (11) -
IP
_ MSFILTER (11) -
IP
_ UNBLOCK _ SOURCE (11) -
MCAST
_ BLOCK _ SOURCE (11) -
MCAST
_ EXCLUDE (11) -
MCAST
_ INCLUDE (11) -
MCAST
_ JOIN _ SOURCE _ GROUP (11) -
MCAST
_ LEAVE _ SOURCE _ GROUP (11) -
MCAST
_ MSFILTER (11) -
MCAST
_ UNBLOCK _ SOURCE (11) -
NEWS for Ruby 2
. 7 . 0 (5) - UndefinedConversionError (11)
-
add
_ spec (11) -
add
_ update _ sources _ option (11) -
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) - compile (11)
-
const
_ source _ location (5) - convert (11)
-
default
_ event _ sources (11) -
destination
_ encoding (22) -
find
_ name (11) -
inline
_ source (11) - irb (11)
- load (11)
-
load
_ specification (11) - new (77)
- parse (22)
- parse! (11)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) - rdoc (11)
-
remove
_ spec (11) - restore (11)
-
rubygems
/ commands / server _ command (11) -
rubygems
/ commands / specification _ command (11) - search (33)
-
search
_ convpath (11) -
search
_ with _ source (11) -
source
_ encoding (22) -
source
_ encoding _ name (11) -
source
_ location (39) - specification (11)
-
to
_ json _ raw _ object (11) -
update
_ sources (11)
検索結果
先頭5件
-
JSON
:: Parser # source -> String (21207.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] (18467.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] -- クラスが再定......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') # => ["test.rb", 2] --... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (15232.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Proc
# source _ location -> [String , Integer] | nil (12331.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 (12325.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 (12319.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] (12307.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 (12300.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... -
ObjectSpace
. # allocation _ sourceline(object) -> Integer (12300.0) -
objectの元となったソースファイルの行番号を返します。
...y]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "line:#{ObjectSpace::allocation_sourceline(obj)}" # => line:4
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (12207.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (12206.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding...