439件ヒット
[401-439件を表示]
(0.084秒)
ライブラリ
- ビルトイン (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)
検索結果
先頭4件
-
Gem
:: SourceIndex # add _ spec(gem _ spec) -> Gem :: Specification (3101.0) -
自身に引数で与えられた Gem::Specification のインスタンスを追加します。
...自身に引数で与えられた Gem::Specification のインスタンスを追加します。
@param gem_spec Gem::Specification のインスタンスを指定します。... -
Gem
:: SourceIndex # remove _ spec(full _ name) -> Gem :: Specification (3101.0) -
引数で指定された名前を持つ Gem をインデックスから削除します。
引数で指定された名前を持つ Gem をインデックスから削除します。 -
Encoding
:: Converter # primitive _ errinfo -> Array (3007.0) -
直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。
...直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。
@return [result, enc1, enc2, error_bytes, readagain_bytes] という五要素の配列
result は直前の primitive_convert の戻り値です。
それ以外の四要素は......:invalid_byte_sequence か :incomplete_input か :undefined_conversion だった場合に意味を持ちます。
enc1 はエラーの発生した原始変換の変換元のエンコーディング、enc2 は変換先のエンコーディングです。
error_bytes はエラーの発生原因とな......Encoding::Converter#primitive_convert と組み合わせて使います。Encoding::Converter#convert を用いている場合にも取得することはできますが、有用な使い方は難しいでしょう。
//emlist[][ruby]{
# \xff is invalid as EUC-JP.
ec = Encoding::Converter.new("EUC-... -
JSON
:: Parser # parse -> object (3007.0) -
現在のソースをパースして結果を Ruby のオブジェクトとして返します。
...[ruby]{
require 'json'
class Person
attr_accessor :name, :age
def []=(key, value)
instance_variable_set("@#{key}", value)
end
end
parser = JSON::Parser.new(DATA.read, object_class: Person)
person = parser.parse
person.class # => Person
person.name # => "tanaka"
person.age # => 20
__......END__
{
"name":"tanaka",
"age":20
}
//}
@see JSON::Parser#source...