30件ヒット
[1-30件を表示]
(0.120秒)
クラス
-
Encoding
:: Converter (12) -
OpenSSL
:: Config (12) -
Scanf
:: FormatSpecifier (6)
キーワード
- each (12)
-
insert
_ output (12)
検索結果
先頭3件
-
Scanf
:: FormatSpecifier # letter (24202.0) -
@todo
@todo -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (3107.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
...require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name (2 letter code)"]
# => ["req_distinguished_name", "countryName_default", "AU"]
# => [... -
Encoding
:: Converter # insert _ output(string) -> nil (119.0) -
変換器内のバッファに文字列を挿入します。 バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
...string 挿入する文字列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
src = "HIRAGANA LETTER A is \u{3042}."
dst = ""
p ec.primitive_convert(src, dst) #=> :undefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER A is ", "."]
ec.insert_output("<......(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER A is <err>.", ""]
ec = Encoding::Converter.new("utf-8", "iso-2022-jp")
src = "\u{306F 3041 3068 2661 3002}" # U+2661 is not representable in iso-2022-jp
dst = ""
p ec.primitive_convert(src, dst) #=> :undefined_...