223件ヒット
[1-100件を表示]
(0.177秒)
ライブラリ
- ビルトイン (175)
- json (12)
- psych (24)
-
rdoc
/ context (12)
クラス
-
Encoding
:: Converter (24) -
Encoding
:: InvalidByteSequenceError (36) -
Enumerator
:: ArithmeticSequence (7) -
Psych
:: Nodes :: Sequence (24) -
RDoc
:: Context :: Section (12) - Range (14)
-
RubyVM
:: InstructionSequence (94)
モジュール
キーワード
- % (7)
-
absolute
_ path (12) - anchor (12)
-
base
_ label (12) -
destination
_ encoding _ name (12) - disasm (12)
- disassemble (12)
-
error
_ bytes (12) - inspect (19)
- label (12)
- path (12)
- putback (24)
-
readagain
_ bytes (12) - step (7)
- tag (12)
-
to
_ binary (10) -
to
_ json _ raw _ object (12)
検索結果
先頭5件
-
RDoc
:: Context :: Section # sequence -> String (24303.0) -
section のシーケンス番号を文字列で返します。
...section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。... -
Psych
:: Nodes :: Sequence # anchor -> String|nil (12230.0) -
sequence に付加された anchor を返します。
...sequence に付加された anchor を返します。
@see Psych::Nodes::Sequence#anchor=,
Psych::Nodes::Sequence.new... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (12202.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
RubyVM
:: InstructionSequence # inspect -> String (12202.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
Encoding
:: Converter # putback -> String (9215.0) -
後の変換用に変換器内部で保持しているバイト列を max_numbytes で指定した バイト数だけ返します。max_numbytes を指定しなかった場合は保持しているバ イト列の全てを返します。
...ec = Encoding::Converter.new("utf-16le", "iso-8859-1")
src = "\x00\xd8\x61\x00"
dst = ""
p ec.primitive_convert(src, dst) #=> :invalid_byte_sequence
p ec.primitive_errinfo #=> [:invalid_byte_sequence, "UTF-16LE", "UTF-8", "\x00\xD8", "a\x00"]
p ec.putback #=> "a\x00"
p ec.putback......#=> "" # no more bytes to put back
//}... -
Encoding
:: Converter # putback(max _ numbytes) -> String (9215.0) -
後の変換用に変換器内部で保持しているバイト列を max_numbytes で指定した バイト数だけ返します。max_numbytes を指定しなかった場合は保持しているバ イト列の全てを返します。
...ec = Encoding::Converter.new("utf-16le", "iso-8859-1")
src = "\x00\xd8\x61\x00"
dst = ""
p ec.primitive_convert(src, dst) #=> :invalid_byte_sequence
p ec.primitive_errinfo #=> [:invalid_byte_sequence, "UTF-16LE", "UTF-8", "\x00\xD8", "a\x00"]
p ec.putback #=> "a\x00"
p ec.putback......#=> "" # no more bytes to put back
//}... -
Enumerator
:: ArithmeticSequence # inspect -> String (9202.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。 -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (9113.0) -
生の文字列を格納したハッシュを生成します。
...する場合に使用してください。
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)... -
Psych
:: Nodes :: Sequence # tag -> String|nil (6130.0) -
sequence に付加された tag を返します。
...sequence に付加された tag を返します。
@see Psych::Nodes::Sequence#tag=,
Psych::Nodes::Sequence.new...