712件ヒット
[1-100件を表示]
(0.159秒)
ライブラリ
- ビルトイン (450)
- json (12)
-
net
/ imap (106) - psych (132)
-
rdoc
/ context (12)
クラス
-
Encoding
:: Converter (96) -
Encoding
:: InvalidByteSequenceError (84) -
Enumerator
:: ArithmeticSequence (98) -
Net
:: IMAP (94) -
Net
:: IMAP :: FetchData (12) - Numeric (21)
-
Psych
:: Handler (36) -
Psych
:: Nodes :: Sequence (96) -
RDoc
:: Context :: Section (12) - Range (14)
-
RubyVM
:: InstructionSequence (130) - TracePoint (7)
モジュール
キーワード
- % (7)
- == (7)
-
absolute
_ path (12) - anchor (12)
- anchor= (12)
-
base
_ label (12) - begin (7)
- copy (12)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) - disasm (12)
- disassemble (12)
- each (14)
- end (7)
-
end
_ sequence (12) -
error
_ bytes (12) - eval (12)
-
exclude
_ end? (7) - 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) - move (10)
- path (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
-
readagain
_ bytes (12) - search (12)
- seqno (12)
- 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 (24202.0) -
section のシーケンス番号を文字列で返します。
...section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (15408.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...script_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......("puts 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
Psych
:: Handler # start _ sequence(anchor , tag , implicit , style) -> () (12272.0) -
sequence の開始を見付けたときに呼び出されます。
...
sequence の開始を見付けたときに呼び出されます。
anchor には sequence に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には sequence に関連付けられた tag の名前が文字列で渡......されます。
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
以下の YAML ドキュメントを例として... -
Psych
:: Handler # end _ sequence -> () (12218.0) -
sequence の終了の見付けたときに呼び出されます。
...
sequence の終了の見付けたときに呼び出されます。
必要に応じてこのメソッドを override してください。... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (12217.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol (12131.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...つ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバ......source buffer may be part of larger source
:after_output => true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incompl......:undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (12131.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...つ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバ......source buffer may be part of larger source
:after_output => true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incompl......:undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (12131.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...つ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバ......source buffer may be part of larger source
:after_output => true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incompl......:undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (12131.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...つ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバ......source buffer may be part of larger source
:after_output => true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incompl......:undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive...