571件ヒット
[1-100件を表示]
(0.045秒)
種類
- インスタンスメソッド (340)
- 特異メソッド (143)
- ライブラリ (55)
- 文書 (22)
- モジュール関数 (11)
ライブラリ
- ビルトイン (109)
- json (22)
- objspace (11)
- rake (11)
- resolv (121)
-
rexml
/ document (11) -
rubygems
/ defaults (33) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (44) -
rubygems
/ source _ info _ cache (121)
クラス
- Binding (6)
-
Encoding
:: Converter (44) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (44) -
Gem
:: SourceInfoCache (121) -
JSON
:: Parser (11) - Method (21)
- Module (5)
- Proc (11)
-
REXML
:: Document (11) -
Rake
:: Task (11) - Regexp (11)
-
Resolv
:: DNS (33) -
Resolv
:: DNS :: Resource :: HINFO (22) -
Resolv
:: DNS :: Resource :: IN :: WKS (11) -
Resolv
:: DNS :: Resource :: MINFO (22) -
Resolv
:: DNS :: Resource :: TXT (33) - UnboundMethod (11)
モジュール
- Gem (33)
-
JSON
:: Generator :: GeneratorMethods :: String (11) - ObjectSpace (11)
キーワード
-
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
allocation
_ sourcefile (11) - bitmap (11)
-
cache
_ file (11) -
const
_ source _ location (5) - convert (11)
- cpu (11)
- data (11)
-
default
_ sources (11) -
default
_ system _ source _ cache _ dir (11) -
default
_ user _ source _ cache _ dir (11) - download (11)
-
each
_ resource (11) - emailbx (11)
-
gem
_ signature (11) - getresource (11)
- getresources (11)
-
index
_ signature (11) - inspect (5)
-
installed
_ spec _ directories (11) - irb (11)
-
latest
_ cache _ file (11) -
latest
_ system _ cache _ file (22) -
latest
_ user _ cache _ file (22) - new (55)
- os (11)
- rdoc (11)
- rmailbx (11)
- rss (11)
-
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / search _ command (11) -
source
_ location (39) -
spec
_ dirs (11) - strings (11)
-
system
_ cache _ file (22) -
to
_ json _ raw _ object (11) -
to
_ s (5) -
try
_ file (11) -
user
_ cache _ file (22) - 多言語化 (11)
検索結果
先頭5件
-
JSON
:: Parser # source -> String (18208.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 (18208.0) -
その正規表現のもととなった文字列表現を生成して返します。
...その正規表現のもととなった文字列表現を生成して返します。
//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}... -
Rake
:: Task # source -> String (18202.0) -
Rake::Task#sources の最初の要素を返します。
...Rake::Task#sources の最初の要素を返します。... -
Resolv
:: DNS :: Resource :: TXT # strings -> [String] (9201.0) -
TXT レコードの文字列を配列で返します。
TXT レコードの文字列を配列で返します。 -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (6280.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 (6232.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 (6226.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 (6220.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] (6208.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
Resolv
:: DNS # each _ resource(name , typeclass) {|resource| . . . } -> () (6206.0) -
nameに対応するDNSリソースレコードを取得します。 見つかったリソースをひとつずつブロックに渡します。
...S::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Resolv::DNS::Resource::IN::MX
* Resolv::DNS::Resource::IN::TXT
* Resolv::DNS::Resource::IN:......esolv::DNS::Resource::IN::WKS
* Resolv::DNS::Resource::IN::PTR
* Resolv::DNS::Resource::IN::AAAA
* Resolv::DNS::Resource::IN::SRV
ルックアップ結果は Resolv::DNS::Resource (のサブクラス)のインスタンスとなります。
typeclass に Resolv::DNS::Resource::IN::ANY 以......外を指定した場合には
そのクラスのインスタンスを返します。
@param name ルックアップ対象となる名前を Resolv::DNS::Name または String で指定します。
@param typeclass レコード種別を指定します。... -
Resolv
:: DNS # getresource(name , typeclass) -> Resolv :: DNS :: Resource (6206.0) -
nameに対応するDNSリソースレコードを取得します。 最初に見つかったリソースを返します。
...S::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Resolv::DNS::Resource::IN::MX
* Resolv::DNS::Resource::IN::TXT
* Resolv::DNS::Resource::IN:......esolv::DNS::Resource::IN::WKS
* Resolv::DNS::Resource::IN::PTR
* Resolv::DNS::Resource::IN::AAAA
* Resolv::DNS::Resource::IN::SRV
ルックアップ結果は Resolv::DNS::Resource (のサブクラス)のインスタンスとなります。
typeclass に Resolv::DNS::Resource::IN::ANY 以......には
そのクラスのインスタンスを返します。
@param name ルックアップ対象となる名前を Resolv::DNS::Name または String で指定します。
@param typeclass レコード種別を指定します。
@raise Resolv::ResolvError ルックアップに失敗した場合...