379件ヒット
[1-100件を表示]
(0.165秒)
ライブラリ
- ビルトイン (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件
-
Rake
:: Task # source -> String (21303.0) -
Rake::Task#sources の最初の要素を返します。
...Rake::Task#sources の最初の要素を返します。... -
JSON
:: Parser # source -> String (18309.0) -
現在のソースのコピーを返します。
...//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
# => }
__END__
{
"Tanaka": {
"name":"tanaka",... -
Regexp
# source -> String (18309.0) -
その正規表現のもととなった文字列表現を生成して返します。
...その正規表現のもととなった文字列表現を生成して返します。
//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}... -
Resolv
:: DNS :: Resource :: TXT # strings -> [String] (15402.0) -
TXT レコードの文字列を配列で返します。
...TXT レコードの文字列を配列で返します。... -
Gem
:: SourceInfoCache # latest _ system _ cache _ file -> String (15302.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (15113.0) -
生の文字列を格納したハッシュを生成します。
...UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json......# source sequence is illegal/malformed (JSON::GeneratorError)... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (12381.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指定した場合 対象にはなりません。
@return ソースコー......st[例][ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end
module M # line 6
C3 = 3
end
class B < A # line 10
include M
C4 = 4
end
class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end
p B.const_source_location('C4') # => ["test......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] --... -
Proc
# source _ location -> [String , Integer] | nil (12333.0) -
ソースコードのファイル名と行番号を配列で返します。
...st[例][ruby]{
# /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 (12327.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...