ライブラリ
- ビルトイン (952)
-
cgi
/ core (12) - csv (48)
-
irb
/ input-method (36) - kconv (24)
-
minitest
/ unit (1) -
net
/ http (72) -
net
/ imap (36) - open-uri (24)
- openssl (12)
- psych (72)
-
rexml
/ document (144) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) - ripper (12)
- rss (96)
- scanf (12)
- stringio (60)
-
webrick
/ httprequest (24) -
webrick
/ httpresponse (12)
クラス
-
ARGF
. class (60) - Array (21)
- CSV (48)
- Encoding (84)
-
Encoding
:: Converter (204) -
Encoding
:: InvalidByteSequenceError (84) -
Encoding
:: UndefinedConversionError (60) - IO (66)
-
IRB
:: FileInputMethod (12) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) - Integer (24)
-
Net
:: IMAP :: BodyTypeBasic (12) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeText (12) -
OpenSSL
:: SSL :: SSLContext (12) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Stream (24) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Options (24) -
REXML
:: Document (60) -
REXML
:: Instruction (24) -
REXML
:: XMLDecl (60) -
RSS
:: Maker :: RSSBase (24) -
RSS
:: RDF (24) -
RSS
:: Rss (24) - Regexp (24)
- Ripper (12)
- String (307)
- StringIO (60)
- Symbol (12)
- Time (42)
-
WEBrick
:: HTTPRequest (24) -
WEBrick
:: HTTPResponse (12)
モジュール
-
CGI
:: QueryExtension (12) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (72) -
OpenURI
:: Meta (24) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12) -
RSS
:: RootElementMixin (24)
キーワード
- << (12)
- == (12)
-
accept
_ encoding (24) -
append
_ as _ bytes (1) -
ascii
_ compatible? (12) - asctime (12)
- b (12)
-
ca
_ file= (12) - casecmp (12)
- chr (24)
- chunked= (12)
- chunked? (12)
- concat (21)
- content (12)
-
content
_ encoding (12) - convert (12)
- convpath (12)
- ctime (12)
-
destination
_ encoding (36) -
destination
_ encoding _ name (24) - dummy? (12)
- each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) - encode (36)
- encode! (24)
- encoding (216)
- encoding= (72)
-
error
_ bytes (12) -
error
_ char (12) -
external
_ encoding (48) - finish (12)
-
fixed
_ encoding? (12) -
force
_ encoding (12) -
incomplete
_ input? (12) -
insert
_ output (12) - inspect (42)
-
internal
_ encoding (48) - iseuc (12)
-
last
_ error (12) -
mu
_ pp (1) - name (12)
- names (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - pack (21)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
- query (12)
-
readagain
_ bytes (12) - replacement (12)
- replacement= (12)
- replicate (12)
- scanf (12)
- scrub (36)
- scrub! (36)
-
set
_ encoding (108) -
set
_ encoding _ by _ bom (6) -
source
_ encoding (36) -
source
_ encoding _ name (24) -
stand
_ alone? (12) - start (36)
-
start
_ stream (12) - target (12)
-
to
_ s (24) - tolocale (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - unpack (12)
-
valid
_ encoding? (12) - version (12)
- write (24)
- writeencoding (12)
- xmldecl (36)
検索結果
先頭5件
-
Time
# ctime -> String (19.0) -
時刻を asctime(3) の形式の文字列に変換します。た だし、末尾の改行文字 "\n" は含まれません。
...れません。
戻り値の文字エンコーディングは Encoding::US_ASCII です。
//emlist[][ruby]{
p Time.local(2000).asctime # => "Sat Jan 1 00:00:00 2000"
p Time.local(2000).asctime.encoding # => #<Encoding:US-ASCII>
p Time.local(2000).ctime # => "Sat Jan 1... -
String
# <<(other) -> self (18.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...self に文字列 other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"... -
String
# concat(other) -> self (18.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...self に文字列 other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"... -
String
# <<(other) -> self (17.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...self に文字列 other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"... -
String
# concat(other) -> self (17.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...self に文字列 other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"... -
OpenSSL
:: SSL :: SSLContext # ca _ file=(ca) (13.0) -
接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを 設定します。
...書の説明)
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----
(ここに証明書の説明)
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----
デフォルトは nil です。
@param c... -
String
# iseuc -> bool (13.0) -
self が EUC-JP なバイト列として正当であるかどうかを判定します。
...5\xb0\xb8\xc0\xb8\xec\
\x52\x75\x62\x79".force_encoding('EUC-JP')
sjis_str = "\
\x83\x49\x83\x75\x83\x57\x83\x46\x83\x4e\x83\x67\x8e\x77\x8c\xfc\
\x83\x76\x83\x8d\x83\x4f\x83\x89\x83\x7e\x83\x93\x83\x4f\x8c\xbe\x8c\xea\
\x52\x75\x62\x79".force_encoding('Shift_JIS')
euc_str.iseuc # => true
sjis_st... -
String
# concat(*arguments) -> self (8.0) -
self に複数の文字列を破壊的に連結します。
...である場合は Integer#chr の結果に相当する文字を末尾に追加します。追加する文字のエンコーディングは self.encoding です。
self を返します。
@param arguments 複数の文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "foo"
str.concat... -
CSV
# inspect -> String (7.0) -
ASCII 互換文字列で自身の情報を表したものを返します。
...ASCII 互換文字列で自身の情報を表したものを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.inspect # => "<#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
//}... -
MiniTest
:: Assertions # mu _ pp(object) -> String (7.0) -
Object#inspect した結果のエンコーディングを変更して返します。
...Object#inspect した結果のエンコーディングを変更して返します。
エンコーディングは Encoding.default_external に変更されます。
@param object 任意のオブジェクトを指定します。... -
Net
:: HTTPHeader # each {|name , val| . . . . } -> () (7.0) -
保持しているヘッダ名とその値をそれぞれ ブロックに渡して呼びだします。
...mlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_header { |key,value| puts "#{key} = #{value}" }
# => accept-encoding = gzip;q=1.0,deflate;q=0.6,identity;q=0.3
# => accept = */*
# => user-agent = Ruby
//}... -
Net
:: HTTPHeader # each _ capitalized _ name {|name| . . . . } -> () (7.0) -
保持しているヘッダ名を正規化 ('x-my-header' -> 'X-My-Header') して、ブロックに渡します。
...er' -> 'X-My-Header')
して、ブロックに渡します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_capitalized_name { |key| puts key }
# => Accept-Encoding
# => Accept
# => User-Agent
//}...