439件ヒット
[1-100件を表示]
(0.121秒)
ライブラリ
- ビルトイン (187)
- json (36)
- rss (60)
-
rubygems
/ config _ file (24) -
rubygems
/ source _ index (60) -
rubygems
/ source _ info _ cache (24) - win32ole (12)
クラス
- Binding (7)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (36) -
Gem
:: ConfigFile (24) -
Gem
:: SourceIndex (60) -
Gem
:: SourceInfoCache (24) -
JSON
:: Parser (24) - Method (12)
- Module (12)
- Proc (12)
-
RDoc
:: Options (12) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source (24) -
RSS
:: Rss :: Channel :: Item :: Source (24) -
RSS
:: TaxonomyTopicsModel :: TaxonomyTopics (12) - UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
キーワード
-
add
_ source _ option (12) -
add
_ spec (12) -
add
_ update _ sources _ option (12) -
const
_ source _ location (12) - content (24)
- content= (24)
- convert (12)
-
default
_ event _ sources (12) -
destination
_ encoding (24) -
find
_ name (12) -
inline
_ source (12) - parse (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) -
remove
_ spec (12) - resources (12)
- search (24)
-
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 (21108.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] (18368.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 (15218.0) -
オプション --source を追加します。
...オプション --source を追加します。... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (15217.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
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
//}... -
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]
//}... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (12108.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding...