種類
- インスタンスメソッド (436)
- 特異メソッド (128)
- 定数 (55)
- クラス (11)
- モジュール関数 (11)
クラス
-
Encoding
:: Converter (55) -
Encoding
:: InvalidByteSequenceError (77) -
Enumerator
:: ArithmeticSequence (59) -
Net
:: IMAP (64) -
Net
:: IMAP :: ThreadMember (11) - Numeric (18)
-
OpenSSL
:: ASN1 :: Sequence (11) -
OpenSSL
:: X509 :: Extension (22) -
Psych
:: Handler (22) -
Psych
:: Nodes :: Sequence (88) -
RubyVM
:: InstructionSequence (159) - Socket (11)
モジュール
-
OpenSSL
:: ASN1 (22) -
Socket
:: Constants (11)
キーワード
- == (6)
- BLOCK (11)
- FLOW (11)
- InvalidByteSequenceError (11)
-
MSG
_ FLUSH (22) - Sequence (11)
-
absolute
_ path (11) - anchor (11)
-
base
_ label (11) - begin (5)
- compile (11)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - copy (11)
-
destination
_ encoding (11) -
destination
_ encoding _ name (11) - disassemble (22)
- each (12)
- end (6)
-
error
_ bytes (11) - eval (11)
-
exclude
_ end? (6) - expunge (11)
- first (6)
-
first
_ lineno (11) - implicit (11)
- implicit= (11)
-
incomplete
_ input? (11) - label (11)
- last (12)
-
last
_ error (11) -
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) - move (9)
- new (55)
-
primitive
_ convert (44) -
readagain
_ bytes (11) - search (11)
- seqno (11)
- size (6)
-
source
_ encoding (11) -
source
_ encoding _ name (11) -
start
_ mapping (11) -
start
_ sequence (11) - step (18)
- store (11)
- style (11)
- tag (11)
-
to
_ binary (9) -
uid
_ thread (11)
検索結果
先頭5件
- Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool - RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence - Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding - Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String - OpenSSL
:: ASN1 :: SEQUENCE -> Integer
-
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (27300.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
...す。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end
begin
ec.conve......rt("abc\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (24800.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......tions コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# i......rb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (24300.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (24300.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
OpenSSL
:: ASN1 :: SEQUENCE -> Integer (21217.0) -
ASN.1 UNIVERSAL タグの、 SEQUENCE のタグ番号 16 を表す定数です。
...ASN.1 UNIVERSAL タグの、
SEQUENCE のタグ番号 16 を表す定数です。... -
Encoding
:: InvalidByteSequenceError (21000.0) -
文字列がそのエンコーディングにおいて不正なバイト列である場合に発生 する例外。
...である場合に発生
する例外。
通常エンコーディング変換時に発生します。
//emlist[例][ruby]{
"\x82\xa0".force_encoding("cp932").encode("UTF-8")
#=> "あ"
"\x82\xa0".force_encoding("EUC-JP").encode("UTF-8")
#=> Encoding::InvalidByteSequenceError: "\x82" on EUC-JP
//}... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (18500.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起......りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (18400.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
Encoding
:: InvalidByteSequenceError # readagain _ bytes -> String (18200.0) -
エラー発生時に読み直さなければならないバイト列を返します。
...エラー発生時に読み直さなければならないバイト列を返します。
@see Encoding::InvalidByteSequenceError#error_bytes... -
Encoding
:: InvalidByteSequenceError # source _ encoding -> Encoding (18200.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換元のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#destination_encoding,
Encoding::UndefinedConversionError#source_encoding...