るりまサーチ

最速Rubyリファレンスマニュアル検索!
133件ヒット [101-133件を表示] (0.018秒)
トップページ > クエリ:Class[x] > クエリ:Sequence[x]

別のキーワード

  1. argf.class each
  2. argf.class each_line
  3. argf.class lines
  4. class new
  5. argf.class readline

検索結果

<< < 1 2 >>

OpenSSL::ASN1.#decode(der) -> OpenSSL::ASN1::ASN1Data (36.0)

DER 表現の文字列を解析し、そこにエンコードされている ASN.1 の値を OpenSSL::ASN1::ASN1Data のサブクラスのインスタンスとして返します。

...::ASN1::Sequence:0x814e9fc
@tag=16,
@tag_class=:UNIVERSAL,
@tagging=nil,
@value=
[#<OpenSSL::ASN1::Sequence:0x814ead8
@tag=16,
@tag_class=:UNIVERSAL,
@tagging=nil,
@value=
[#<OpenSSL::ASN1::ASN1Data:0x814f690
@tag=0,
@tag_class=:CONTEX...
...T_SPECIFIC,
@value=
[#<OpenSSL::ASN1::Integer:0x814f6a4
@tag=2,
@tag_class=:UNIVERSAL,
@tagging=nil,
@value=2>]>,
...

@param der DER形式の文字列
@raise OpenSSL::ASN1::ASN1Error 解析に失敗した場合に発生...

CSV.new(data, options = Hash.new) -> CSV (24.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...先頭から次の "\r\n", "\n", "\r" の並びまでを読みます。
A sequence will be selected even if it occurs in a quoted field, assuming that you
would have the same line endings there. If none of those sequences is
found, +data+ is ARGF, Object::STDIN, Object::STDOUT, or
Object::S...
...なく間違ったシングルクオートを使用しているアプリケーション
で便利です。
CSV will always consider a double sequence this character to be an
escaped quote.
この文字列はパースする前にデータのエンコーディングに変換されます。
:...
...uki,18
3,ami,sato,19
4,yumi,adachi,21
EOS

File.write("test.csv", users)

File.open("test.csv", "r") do |f|
csv = CSV.new(f, headers: true)
csv.class # => CSV
csv.first # => #<CSV::Row "id":"1" "first name":"taro" "last name":"tanaka" "age":"20">
end
//}

//emlist[例 文字列の読み込み]...

JSON::Generator::GeneratorMethods::String#to_json_raw_object -> Hash (12.0)

生の文字列を格納したハッシュを生成します。

...する場合に使用してください。

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)...

NEWS for Ruby 2.6.0 (12.0)

NEWS for Ruby 2.6.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...15143
* 別名
* Enumerable#filter が Enumerable#select の別名として追加されました。 13784

* Enumerator::ArithmeticSequence
* 等差数列(隣接する項が共通の差(公差)を持つ数列)のジェネレーターを表現する新しいクラスです。
P...
...ションが追加されて
Ruby コードからも設定できるようになりました。 14313

* NilClass
* 新規メソッド
* 互換性のため、NilClass#=~ が追加されました。 15231

* NoMethodError
* 新規オプション
* NoMethodError.new に :r...
...* Numeric
* 非互換な変更
* Numeric#step が Enumerator クラスのインスタンスではなく
Enumerator::ArithmeticSequence クラスのインスタンスを返すようになりました。

* OpenStruct
* 変更されたメソッド
* OpenStruct#to_h は...
<< < 1 2 >>