415件ヒット
[1-100件を表示]
(0.117秒)
ライブラリ
- ビルトイン (163)
- 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 (12) -
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 (12) -
source
_ location (43) - specification (12)
-
to
_ json _ raw _ object (12) -
update
_ sources (12) -
update
_ sources= (12)
検索結果
先頭5件
-
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (24468.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] -... -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (24317.0) -
オプション --update-source を追加します。
...オプション --update-source を追加します。... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (24307.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Gem
:: LocalRemoteOptions # add _ source _ option (21318.0) -
オプション --source を追加します。
...オプション --source を追加します。... -
JSON
:: Parser # source -> String (21208.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",... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (21207.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)... -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source # content (21201.0) -
@todo
...@todo... -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source # content=() (21201.0) -
@todo
...@todo... -
Proc
# source _ location -> [String , Integer] | nil (18332.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...