982件ヒット
[101-200件を表示]
(0.038秒)
クラス
-
Encoding
:: Converter (72) -
Encoding
:: InvalidByteSequenceError (84) -
Enumerator
:: ArithmeticSequence (98) -
Net
:: IMAP (36) - Numeric (21)
-
OpenSSL
:: ASN1 :: Sequence (24) -
OpenSSL
:: X509 :: Extension (12) -
Psych
:: Handler (24) -
Psych
:: Nodes :: Sequence (144) -
RDoc
:: Context :: Section (12) - Range (14)
-
RubyVM
:: InstructionSequence (246) - Socket (12)
- TracePoint (7)
モジュール
-
OpenSSL
:: ASN1 (36) -
Socket
:: Constants (12)
キーワード
- % (7)
- == (7)
- ANY (12)
- ASN1 (12)
- ArithmeticSequence (7)
- BLOCK (12)
- Document (12)
- FLOW (12)
- InstructionSequence (12)
- InvalidByteSequenceError (12)
-
MSG
_ FLUSH (24) - Mapping (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - Request (12)
- SEQUENCE (12)
- Sequence (48)
-
absolute
_ path (12) - anchor (12)
- anchor= (12)
-
base
_ label (12) - begin (7)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) -
destination
_ encoding (12) -
destination
_ encoding _ name (12) - disasm (24)
- disassemble (24)
- each (14)
- end (7)
-
end
_ sequence (12) -
error
_ bytes (12) - eval (12)
-
exclude
_ end? (7) - expunge (12)
- first (14)
-
first
_ lineno (12) - hash (7)
- implicit (12)
- implicit= (12)
-
incomplete
_ input? (12) - inspect (19)
-
instruction
_ sequence (7) - label (12)
- last (14)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - new (60)
- of (12)
- path (12)
-
primitive
_ convert (48) - putback (24)
-
readagain
_ bytes (12) - size (7)
-
source
_ encoding (12) -
source
_ encoding _ name (12) -
start
_ sequence (12) - step (35)
- style (12)
- style= (12)
- tag (12)
- tag= (12)
-
to
_ a (12) -
to
_ binary (10) -
uid
_ sort (12) -
uid
_ thread (12)
検索結果
先頭5件
-
OpenSSL
:: ASN1 :: Sequence (12016.0) -
ASN.1 の Sequence 型(Universal タグのタグ番号16)を表すクラスです。
...ASN.1 の Sequence 型(Universal タグのタグ番号16)を表すクラスです。... -
Encoding
:: InvalidByteSequenceError (12000.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
//}... -
Enumerator
:: ArithmeticSequence (12000.0) -
等差数列を提供するためのクラス。
...等差数列を提供するためのクラス。
ArithmeticSequenceオブジェクトは、Numeric#step, Range#step によって生成されます。... -
RubyVM
:: InstructionSequence (12000.0) -
Ruby の Virtual Machine のコンパイル済みの命令シーケンスを表すクラスです。
...Ruby の Virtual Machine のコンパイル済みの命令シーケンスを表すクラスです。
Method、Proc オブジェクトや Ruby のソースコードを表す文字列
から VM の命令シーケンスを得る事ができます。また、
RubyVM::InstructionSequence オブジェク......Ruby の命令シーケンスコンパイラの設定を
扱う必要がありますが、Ruby の VM がどのように働くかを知るのに有用です。
VM の命令シーケンスの一覧はRuby のソースコード中の insns.def から参照で
きます。
* https://github.com/ruby/......ruby/blob/master/insns.def... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (9100.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
//}... -
Encoding
:: InvalidByteSequenceError # source _ encoding -> Encoding (9100.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換元のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#destination_encoding,
Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: InvalidByteSequenceError # source _ encoding _ name -> Encoding (9100.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#source_encoding... -
Enumerator
:: ArithmeticSequence # exclude _ end? -> bool (9100.0) -
末項(終端)を含まないとき真を返します。
末項(終端)を含まないとき真を返します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (9100.0) -
self が表す命令シーケンスの絶対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
Psych
:: Nodes :: Sequence . new(anchor=nil , tag=nil , implicit=true , style=BLOCK) -> Psych :: Nodes :: Sequence (6371.0) -
新たな sequence オブジェクトを生成します。
...新たな sequence オブジェクトを生成します。
anchor には sequence に付加されている anchor を文字列で指定します。
anchor を付けない場合には nil を指定します。
tag には sequence に付加されている tag を文字列で指定します。
tag......mplicit には sequence が implicit に開始されたかどうかを
真偽値で指定します。
style には YAML ドキュメント上の style を整数で指定します。以下のいずれ
かを指定できます。
* Psych::Nodes::Sequence::ANY
* Psych::Nodes::Sequence::BLOCK
* P......sych::Nodes::Sequence::FLOW
@param anchor sequence に付加された anchor
@param tag sequence に付加された tag
@param implicit sequence が implicit に開始されたかどうか
@param style YAML ドキュメント上の style...