1075件ヒット
[1-100件を表示]
(0.102秒)
ライブラリ
クラス
- CSV (12)
-
Encoding
:: Converter (96) -
Encoding
:: InvalidByteSequenceError (84) -
Enumerator
:: ArithmeticSequence (98) -
Net
:: IMAP (106) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: ThreadMember (12) - Numeric (21)
-
OpenSSL
:: ASN1 :: Sequence (12) -
OpenSSL
:: X509 :: Extension (24) -
Psych
:: Handler (24) -
Psych
:: Nodes :: Sequence (132) -
RDoc
:: Context :: Section (12) - Range (14)
-
RubyVM
:: InstructionSequence (246) - Socket (12)
- TracePoint (7)
モジュール
キーワード
- % (7)
- == (7)
- ANY (12)
- ASN1 (12)
- ArithmeticSequence (7)
- BLOCK (12)
- Document (12)
- FLOW (12)
- InstructionSequence (12)
- InvalidByteSequenceError (12)
-
MSG
_ FLUSH (24) -
NEWS for Ruby 2
. 0 . 0 (12) - Request (12)
- SEQUENCE (12)
- Sequence (12)
-
absolute
_ path (12) - anchor (12)
-
base
_ label (12) - begin (7)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - copy (12)
- decode (12)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) - disasm (24)
- disassemble (24)
- each (14)
- end (7)
-
error
_ bytes (12) - eval (12)
-
exclude
_ end? (7) - expunge (12)
- fetch (12)
- first (14)
-
first
_ lineno (12) - hash (7)
- implicit (12)
- implicit= (12)
-
incomplete
_ input? (12) - inspect (19)
-
instruction
_ sequence (7) - label (12)
- last (14)
-
last
_ error (12) -
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - move (10)
-
net
/ imap (12) - new (72)
- of (12)
- path (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
-
readagain
_ bytes (12) - search (12)
- seqno (24)
- size (7)
- sort (12)
-
source
_ encoding (12) -
source
_ encoding _ name (12) -
start
_ mapping (12) -
start
_ sequence (12) - step (35)
- store (12)
- style (12)
- style= (12)
- tag (12)
- tag= (12)
-
to
_ a (12) -
to
_ binary (10) -
to
_ json _ raw _ object (12) -
uid
_ sort (12) -
uid
_ thread (12)
検索結果
先頭5件
- RDoc
:: Context :: Section # sequence -> String - TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence - Psych
:: Handler # start _ sequence(anchor , tag , implicit , style) -> () - Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding - Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String
-
RDoc
:: Context :: Section # sequence -> String (21201.0) -
section のシーケンス番号を文字列で返します。
...section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (15407.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...pt_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("put......s 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
Psych
:: Handler # start _ sequence(anchor , tag , implicit , style) -> () (12371.0) -
sequence の開始を見付けたときに呼び出されます。
...
sequence の開始を見付けたときに呼び出されます。
anchor には sequence に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には sequence に関連付けられた tag の名前が文字列で渡......ます。
tag がない場合には nil が渡されます。
implicit には sequence が implicit に開始されたかどうかが
真偽値で渡されます。
style には sequence の style が整数値で渡されます。以下のいずれか
です。
* Psych::Nodes::Sequence::BLOCK......* Psych::Nodes::Sequence::FLOW
必要に応じてこのメソッドを override してください。
@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit sequence が implicit に開始されかどうか
@param style sequence のスタイル
=== Example
以... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (12200.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (12200.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (12200.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... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (12106.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)... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (12100.0) -
エラー発生時に捨てられたバイト列を返します。
...//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump #=> "\xA1"
puts $!.re......adagain_bytes.dump #=> "\xFF"
end
//}
@see Encoding::InvalidByteSequenceError#readagain_bytes... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (12100.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.convert("abc\......xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}...