ライブラリ
クラス
- CSV (11)
- DateTime (55)
- GetoptLong (11)
-
JSON
:: Parser (11) -
Net
:: IMAP (22) -
OpenSSL
:: ASN1 :: Set (22) - Set (22)
- Tracer (22)
- WIN32OLE (11)
モジュール
- Psych (22)
キーワード
- civil (11)
- commercial (11)
- dump (22)
- jd (11)
- locale= (11)
- ordinal (11)
-
set
_ get _ line _ procs (22)
検索結果
先頭5件
-
Set
. new(enum = nil) -> Set (35265.0) -
引数 enum で与えられた要素を元に、新しい集合を作ります。
...えられて、かつ enum に each メソッドが
定義されていない場合に発生します。
//emlist[][ruby]{
require 'set'
p Set.new # => #<Set: {}>
p Set.new([1, 2]) # => #<Set: {1, 2}>
p Set.new([1, 2]) {|o| o * 2} # => #<Set: {2, 4}>
//}... -
Set
. new(enum = nil) {|o| . . . } -> Set (35265.0) -
引数 enum で与えられた要素を元に、新しい集合を作ります。
...えられて、かつ enum に each メソッドが
定義されていない場合に発生します。
//emlist[][ruby]{
require 'set'
p Set.new # => #<Set: {}>
p Set.new([1, 2]) # => #<Set: {1, 2}>
p Set.new([1, 2]) {|o| o * 2} # => #<Set: {2, 4}>
//}... -
OpenSSL
:: ASN1 :: Set . new(value) -> OpenSSL :: ASN1 :: Set (21243.0) -
ASN.1 の Set 型の値を表現する OpenSSL::ASN1::Set オブジェクトを 生成します。
...ASN.1 の Set 型の値を表現する OpenSSL::ASN1::Set オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::SET となります。
@param value ASN.1値を表すRubyのオブジェクト(OpenSSL::ASN1::A... -
OpenSSL
:: ASN1 :: Set . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: Set (21243.0) -
ASN.1 の Set 型の値を表現する OpenSSL::ASN1::Set オブジェクトを 生成します。
...ASN.1 の Set 型の値を表現する OpenSSL::ASN1::Set オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::SET となります。
@param value ASN.1値を表すRubyのオブジェクト(OpenSSL::ASN1::A... -
CSV
. new(data , options = Hash . new) -> CSV (18227.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...d. Obviously,
discovery takes a little time. Set manually if speed is important. Also
note that IO objects should be opened in binary mode on Windows if this
feature will be used as the line-ending translation can cause
problems with resetting the document position to where it was bef......will raise a
MalformedCSVError, assuming the data is faulty. You can use this limit to
prevent what are effectively DoS attacks on the parser. However, this
limit can cause a legitimate parse to fail and thus is set to +nil+, or off,
by default.
: :converters
CSV::Converters から取......e
1,taro,tanaka,20
2,jiro,suzuki,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[... -
GetoptLong
. new(*arguments) (18124.0) -
GetoptLong のオブジェクトを生成します。引数が与えられ たときは、それを GetoptLong#set_options メソッドに渡します。
...GetoptLong のオブジェクトを生成します。引数が与えられ
たときは、それを GetoptLong#set_options メソッドに渡します。
@param arguments オプションを定義するための配列の配列を指定します。
@see GetoptLong#set_options... -
JSON
:: Parser . new(source , options => {}) -> JSON :: Parser (18120.0) -
パーサを初期化します。
...ます。
@param options オプションを指定するためのハッシュです。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"s......定する][ruby]{
require 'json'
class Person
attr_accessor :name, :age
def []=(key, value)
instance_variable_set("@#{key}", value)
end
end
parser = JSON::Parser.new(DATA.read, object_class: Person)
person = parser.parse
person.class # => Person
person.name # => "tanaka"
person.age #... -
Net
:: IMAP . new(host , options) -> Net :: IMAP (18115.0) -
新たな Net::IMAP オブジェクトを生成し、指定したホストの 指定したポートに接続し、接続語の IMAP オブジェクトを返します。
...せるパラメータは
OpenSSL::SSL::SSLContext#set_params と同じです。
これの :ssl パラメータを使うことで、OpenSSL のパラメータを詳細に
調整できます。
例
require 'net/imap'
imap = Net::IMAP.new('imap.example.com', :port => 993,... -
Net
:: IMAP . new(host , port = 143 , usessl = false , certs = nil , verify = true) -> Net :: IMAP (18115.0) -
新たな Net::IMAP オブジェクトを生成し、指定したホストの 指定したポートに接続し、接続語の IMAP オブジェクトを返します。
...せるパラメータは
OpenSSL::SSL::SSLContext#set_params と同じです。
これの :ssl パラメータを使うことで、OpenSSL のパラメータを詳細に
調整できます。
例
require 'net/imap'
imap = Net::IMAP.new('imap.example.com', :port => 993,... -
DateTime
. new(year = -4712 , mon = 1 , mday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (15202.0) -
暦日付に相当する日時オブジェクトを生成します。
...な時差をあらわす文字列もつかえます。
@param year 年
@param mon 月
@param mday 日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時...