1644件ヒット
[201-300件を表示]
(0.100秒)
ライブラリ
- ビルトイン (24)
-
cgi
/ core (12) - csv (144)
- logger (84)
- openssl (108)
- resolv (48)
-
rubygems
/ source _ info _ cache (252) -
rubygems
/ source _ info _ cache _ entry (36) -
rubygems
/ specification (12) -
rubygems
/ user _ interaction (24) - socket (756)
-
syslog
/ logger (24) - uri (24)
-
webrick
/ httprequest (24) -
webrick
/ httpserver (12) -
webrick
/ log (48) -
win32
/ registry (12)
クラス
- Addrinfo (552)
- BasicSocket (60)
- CSV (72)
-
CSV
:: FieldInfo (72) -
Encoding
:: Converter (12) - Exception (12)
-
Gem
:: SourceInfoCache (252) -
Gem
:: SourceInfoCacheEntry (36) -
Gem
:: Specification (12) -
Gem
:: StreamUI (12) - Logger (84)
-
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKCS7 :: RecipientInfo (36) -
OpenSSL
:: PKCS7 :: SignerInfo (48) -
Resolv
:: DNS :: Resource :: HINFO (24) -
Resolv
:: DNS :: Resource :: MINFO (24) - Socket (24)
-
Socket
:: AncillaryData (48) -
Socket
:: Ifaddr (48) -
Socket
:: UDPSource (24) -
Syslog
:: Logger (24) -
URI
:: Generic (24) -
WEBrick
:: BasicLog (48) -
WEBrick
:: HTTPRequest (24) -
WEBrick
:: HTTPServer :: MountTable (12) -
Win32
:: Registry (12)
モジュール
-
CGI
:: QueryExtension (12) -
Gem
:: UserInteraction (12)
キーワード
- << (12)
- addr (12)
- afamily (12)
- alert (24)
- bind (24)
- broadaddr (12)
-
cache
_ data (12) -
cache
_ file (12) - canonname (12)
- close (12)
- connect (24)
-
connect
_ address (12) -
connect
_ from (24) -
connect
_ to (24) - convert (36)
- cpu (12)
- debug? (12)
- dstaddr (12)
- emailbx (12)
-
enc
_ key (12) -
family
_ addrinfo (24) - flush (12)
- formatter (12)
- getnameinfo (12)
- header (12)
- header= (12)
-
header
_ convert (36) - index (12)
- index= (12)
- info? (36)
-
inspect
_ sockaddr (12) - ip? (12)
-
ip
_ address (12) -
ip
_ pktinfo (12) -
ip
_ port (12) -
ip
_ unpack (12) - ipv4? (12)
-
ipv4
_ loopback? (12) -
ipv4
_ multicast? (12) -
ipv4
_ private? (12) - ipv6? (12)
-
ipv6
_ linklocal? (12) -
ipv6
_ loopback? (12) -
ipv6
_ mc _ global? (12) -
ipv6
_ mc _ linklocal? (12) -
ipv6
_ mc _ nodelocal? (12) -
ipv6
_ mc _ orglocal? (12) -
ipv6
_ mc _ sitelocal? (12) -
ipv6
_ multicast? (12) -
ipv6
_ pktinfo (12) -
ipv6
_ pktinfo _ addr (12) -
ipv6
_ pktinfo _ ifindex (12) -
ipv6
_ sitelocal? (12) -
ipv6
_ to _ ipv4 (12) -
ipv6
_ unique _ local? (12) -
ipv6
_ unspecified? (12) -
ipv6
_ v4compat? (12) -
ipv6
_ v4mapped? (12) - issuer (24)
-
latest
_ cache _ data (12) -
latest
_ cache _ file (12) -
latest
_ system _ cache _ file (12) -
latest
_ user _ cache _ file (12) - line (12)
- line= (12)
- listen (24)
-
local
_ address (24) - log (12)
- name (12)
- netmask (12)
- os (12)
-
path
_ info (24) -
path
_ info= (12) - pfamily (12)
-
primitive
_ errinfo (12) - progname= (12)
- protocol (12)
-
read
_ all _ cache _ data (12) -
read
_ cache _ data (12) - recipients (12)
- recvfrom (12)
-
recvfrom
_ nonblock (12) - recvmsg (12)
-
recvmsg
_ nonblock (12) - refresh (24)
-
remote
_ address (24) - requirements= (12)
-
reset
_ cache _ data (12) -
reset
_ cache _ file (12) -
reset
_ cache _ for (12) - rmailbx (12)
- scan (12)
- search (12)
-
search
_ with _ source (12) - serial (24)
-
set
_ backtrace (12) -
set
_ cache _ data (12) -
signed
_ time (12) - signers (12)
- size (12)
- socktype (12)
-
source
_ index (12) -
system
_ cache _ file (12) -
to
_ s (12) -
to
_ sockaddr (12) -
try
_ file (12) - unix? (12)
-
unix
_ path (12) - update (12)
-
user
_ cache _ file (12) - userinfo (12)
- userinfo= (12)
-
write
_ cache (12)
検索結果
先頭5件
-
WEBrick
:: HTTPRequest # path _ info=(value) (6102.0) -
リクエスト URI のパスをセットします。
リクエスト URI のパスをセットします。
@param value リクエスト URI のパスを指定します。 -
Encoding
:: Converter # primitive _ errinfo -> Array (6101.0) -
直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。
...原因となったバイト列、readagain_bytes は先読みによって変換器内部に保持されているバイト列です。
primitive_errinfo はもっぱら Encoding::Converter#primitive_convert と組み合わせて使います。Encoding::Converter#convert を用いている場合に......\xff is invalid as EUC-JP.
ec = Encoding::Converter.new("EUC-JP", "Shift_JIS")
ec.primitive_convert(src="\xff", dst="", nil, 10)
p ec.primitive_errinfo
#=> [:invalid_byte_sequence, "EUC-JP", "Shift_JIS", "\xFF", ""]
# HIRAGANA LETTER A (\xa4\xa2 in EUC-JP) is not representable in ISO-8859-1.
# Sin......st="", nil, 10)
p ec.primitive_errinfo
#=> [:undefined_conversion, "UTF-8", "ISO-8859-1", "\xE3\x81\x82", ""]
# partial character is invalid
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
ec.primitive_convert(src="\xa4", dst="", nil, 10)
p ec.primitive_errinfo
#=> [:incomplete_input, "EUC-JP"... -
Socket
:: AncillaryData # ipv6 _ pktinfo _ ifindex -> Integer (6101.0) -
自身の type が IPV6_PKTINFO である場合、保持しているデータ (アドレス、インターフェースのインデックス) のインデックスを返します。
...type が IPV6_PKTINFO である場合、保持しているデータ
(アドレス、インターフェースのインデックス)
のインデックスを返します。
require 'socket'
addr = Addrinfo.ip("::1")
ifindex = 0
ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
p......ancdata.ipv6_pktinfo_ifindex #=> 0
@see Socket::AncillaryData.ipv6_pktinfo,
Socket::AncillaryData#ipv6_pktinfo,
Socket::AncillaryData#ipv6_pktinfo_addr,
Socket::Constants::IPV6_PKTINFO... -
URI
:: Generic # userinfo -> String | nil (6101.0) -
自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。
...自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。... -
URI
:: Generic # userinfo=(s) (6101.0) -
自身の userinfo を設定します。
...自身の userinfo を設定します。
@param s 自身の userinfo を "username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対......validURIError userinfo と registry を同時に設定した場合に発生します。
例:
require 'uri'
u = URI.parse('http://example.com/')
u.userinfo = 'hoge-san:jfae82kj'
p u.to_s #=> "http://hoge-san:jfae82kj@example.com/"
u.userinfo = 'oreore'
p u.......to_s #=> "http://oreore:jfae82kj@example.com/"
u.userinfo = ['you', 'akakfd']
p u.to_s #=> "http://you:akakfd@example.com/"... -
Addrinfo
# ipv6 _ to _ ipv4 -> Addrinfo|nil (3101.0) -
IPv6 の v4 マップド/互換アドレスを v4 のアドレスに変換します。
...re 'socket'
Addrinfo.ip("::192.0.2.3").ipv6_to_ipv4 #=> #<Addrinfo: 192.0.2.3>
Addrinfo.ip("::ffff:192.0.2.3").ipv6_to_ipv4 #=> #<Addrinfo: 192.0.2.3>
Addrinfo.ip("::1").ipv6_to_ipv4 #=> nil
Addrinfo.ip("192.0.2.3").ipv6_to_ipv4 #=> nil
Addrinfo.unix("/tmp/sock").... -
CSV
:: FieldInfo # header -> String | nil (3013.0) -
利用可能な場合はヘッダを表す文字列を返します。
...す。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.header
Date.parse(field)
end
p csv.first
# => "date1"
# => "date2"
# => #<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,22991... -
CSV
:: FieldInfo # index -> Integer (3013.0) -
行内で何番目のフィールドかわかるゼロベースのインデックスを返します。
...す。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.index
Date.parse(field)
end
p csv.first
# => 0
# => 1
# => #<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299161j)> "date2"... -
CSV
:: FieldInfo # line -> Integer (3013.0) -
行番号を返します。
...require 'csv'
csv = CSV.new("date1,date2,date3\n2018-07-09,2018-07-10\n2018-08-09,2018-08-10", headers: true)
csv.convert do |field,field_info|
p field_info.line
Date.parse(field)
end
p csv.to_a
# => 2
# => 2
# => 3
# => 3
# => [#<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299...