379件ヒット
[1-100件を表示]
(0.126秒)
ライブラリ
- ビルトイン (91)
- json (24)
- rake (12)
- resolv (120)
-
rubygems
/ remote _ fetcher (12) -
rubygems
/ source _ index (36) -
rubygems
/ source _ info _ cache (84)
クラス
- Binding (7)
-
Encoding
:: Converter (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (36) -
Gem
:: SourceInfoCache (84) -
JSON
:: Parser (12) - Method (24)
- Module (12)
- Proc (12)
-
Rake
:: Task (12) - Regexp (12)
-
Resolv
:: DNS (36) -
Resolv
:: DNS :: Resource :: HINFO (24) -
Resolv
:: DNS :: Resource :: IN :: WKS (12) -
Resolv
:: DNS :: Resource :: MINFO (24) -
Resolv
:: DNS :: Resource :: TXT (24) - UnboundMethod (12)
モジュール
キーワード
- bitmap (12)
-
cache
_ file (12) -
const
_ source _ location (12) - convert (12)
- cpu (12)
- data (12)
- download (12)
-
each
_ resource (12) - emailbx (12)
-
gem
_ signature (12) - getresource (12)
- getresources (12)
-
index
_ signature (12) - inspect (6)
-
latest
_ cache _ file (12) -
latest
_ system _ cache _ file (12) -
latest
_ user _ cache _ file (12) - os (12)
- rmailbx (12)
-
source
_ location (43) -
spec
_ dirs (12) - strings (12)
-
system
_ cache _ file (12) -
to
_ json _ raw _ object (12) -
to
_ s (6) -
try
_ file (12) -
user
_ cache _ file (12)
検索結果
先頭5件
-
JSON
:: Parser # source -> String (18209.0) -
現在のソースのコピーを返します。
...現在のソースのコピーを返します。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
#... -
Regexp
# source -> String (18209.0) -
その正規表現のもととなった文字列表現を生成して返します。
...その正規表現のもととなった文字列表現を生成して返します。
//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}... -
Rake
:: Task # source -> String (18203.0) -
Rake::Task#sources の最初の要素を返します。
...Rake::Task#sources の最初の要素を返します。... -
Resolv
:: DNS :: Resource :: TXT # strings -> [String] (9202.0) -
TXT レコードの文字列を配列で返します。
TXT レコードの文字列を配列で返します。 -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (6281.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義され......_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_......す
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')... -
Proc
# source _ location -> [String , Integer] | nil (6233.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 (6227.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 (6221.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] (6209.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}...