847件ヒット
[1-100件を表示]
(0.154秒)
ライブラリ
クラス
-
ARGF
. class (22) - Array (19)
- CSV (22)
-
CSV
:: Row (11) -
CSV
:: Table (11) -
Digest
:: Base (44) - Encoding (44)
-
Encoding
:: Converter (77) -
Gem
:: Dependency (11) -
Gem
:: Indexer (11) -
Gem
:: Version (11) - IO (44)
- Integer (22)
-
Net
:: FTP (11) -
Net
:: IMAP (22) - Pathname (11)
- Regexp (33)
- Ripper (11)
- String (122)
- Symbol (11)
- Thread (9)
- Time (38)
-
URI
:: FTP (22) -
WIN32OLE
_ VARIANT (11) -
Zlib
:: ZStream (11)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: String (11) - Kconv (11)
- URI (11)
- Zlib (11)
キーワード
- << (11)
- <=> (44)
- BINARY (11)
- IO (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) - NKF (11)
- Ruby用語集 (11)
- String (11)
-
ascii
_ only? (11) -
asciicompat
_ encoding (22) - asctime (11)
- b (11)
- binary (11)
- binmode (11)
- binread (11)
- binwrite (11)
- build (22)
- chr (22)
- compile (11)
- concat (19)
- ctime (11)
-
data
_ type (11) -
default
_ external (11) - downcase (8)
-
encode
_ www _ form (11) - encoding (11)
-
fixed
_ encoding? (11) -
force
_ encoding (11) - generate (11)
- guess (11)
- hexdigest (22)
- hexdigest! (11)
- inspect (38)
-
internal
_ encoding (22) -
locale
_ charmap (11) - name= (9)
-
name
_ list (11) - new (92)
- pack (19)
- pack テンプレート文字列 (11)
- rdoc (11)
- replacement (11)
- replacement= (11)
- sanitize (11)
-
set
_ encoding (11) - sort (11)
-
to
_ json (11) -
to
_ s (22) -
uid
_ sort (11) - unpack (11)
- upcase! (3)
- リテラル (11)
- 正規表現 (11)
検索結果
先頭5件
-
Zlib
:: ASCII -> Integer (18301.0) -
Zlib::ZStream#data_type の返す、データタイプを表す整数です。
...Zlib::ZStream#data_type の返す、データタイプを表す整数です。... -
Encoding
:: Converter . asciicompat _ encoding(string) -> Encoding | nil (9382.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...同じ文字集合を持つ ASCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同......引数が ASCII 互換エンコーディングである場合や、エンコーディングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #......=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Encoding
:: Converter . asciicompat _ encoding(encoding) -> Encoding | nil (9282.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...同じ文字集合を持つ ASCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同......引数が ASCII 互換エンコーディングである場合や、エンコーディングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #......=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
String
# ascii _ only? -> bool (9241.0) -
文字列がASCII文字のみで構成されている場合に true を返します。さもなくば false を返します。
...文字列がASCII文字のみで構成されている場合に true を返します。さもなくば
false を返します。
例:
'abc123'.ascii_only? # => true
''.ascii_only? # => true
'日本語'.ascii_only? # => false
'日本語abc123'.ascii_only? # => fal... -
Net
:: IMAP # sort(sort _ keys , search _ keys , charset) -> [Integer] (6324.0) -
SORT コマンド送り、メールボックス内の メッセージをソートした結果を返します。
...SORT コマンド送り、メールボックス内の
メッセージをソートした結果を返します。
SORT コマンドは 5256 で定義されています。
詳しくはそちらを参照してください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利......er の配列を返します。
例:
p imap.sort(["FROM"], ["ALL"], "US-ASCII")
#=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
#=> [6, 7, 8, 1]
@param sort_key ソート順のキー(文字列配列)
@param search_key 検索条件(文字列配列)
@par......am charset 検索条件の解釈に用いるCHARSET名(文字列)... -
Net
:: IMAP # uid _ sort(sort _ keys , search _ keys , charset) -> [Integer] (6324.0) -
SORT コマンド送り、メールボックス内の メッセージをソートした結果を返します。
...SORT コマンド送り、メールボックス内の
メッセージをソートした結果を返します。
SORT コマンドは 5256 で定義されています。
詳しくはそちらを参照してください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利......er の配列を返します。
例:
p imap.sort(["FROM"], ["ALL"], "US-ASCII")
#=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
#=> [6, 7, 8, 1]
@param sort_key ソート順のキー(文字列配列)
@param search_key 検索条件(文字列配列)
@par......am charset 検索条件の解釈に用いるCHARSET名(文字列)... -
IO
. binwrite(path , string , offset=nil) -> Integer (6312.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
...path で指定されるファイルを開き、string を書き込み、
閉じます。
ファイルを開くときの mode が "rb:ASCII-8BIT" で、バイナリモードが有効
である点以外は IO.write と同じです。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に......@param path ファイル名文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
//emlist[例][ruby]{
# 8x8の真っ白なPNG画像データ。
png = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAADklEQVQIW2P4DwUMlDEA98A/wTjP
QBoAAAAASUVORK5CYII='.unpack('m').first......d 49 48 44 52
# binwriteを使用した場合: どの環境でも正しく保存できる。
IO.binwrite('white.binmode.png', png)
puts IO.binread('white.binmode.png', 16).unpack('C*').map {|c| '%02x' % c }.join(' ')
# => 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52
# binwriteを使用しなか... -
rdoc (6282.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という
ドキュメント生成のためのコマンドも含んでいます。
このパッケージは RDoc と Markup というふたつのコンポーネントを含
んでいます。 RDoc とは Ruby......ラリとして使いたければ、RDoc::Markup を参照してください。
=== 概要
インストールすれば、'rdoc' コマンドでドキュメントが生成できます。
(Windows では 'rdoc.bat' です)
$ rdoc [options] [names...]
"rdoc --help" と打てば、最新のオプ......iple
files are present, the first is used as the index.
<tt>--quiet:</tt>:: do not output the names, sizes, byte counts,
index areas, or bit ratios of units as
they are processed.
====[a:headline] 見出し
見出し部は ASCII 文字の等号... -
URI
. encode _ www _ form(enum , enc=nil) -> String (6264.0) -
enum から URL-encoded form data を生成します。
...ら URL-encoded form data を生成します。
HTML5 で定義されている application/x-www-form-urlencoded 形式の
文字列を生成します。
enum には通常 [key, value] という形の配列の配列を渡します。
以下の例を見てください。
require 'uri'
URI.enco......de_www_form([["a", "1"], ["b", "2"], ["c", "x yz"]])
# => "a=1&b=2&c=x+yz"
実際には、each のブロック呼び出しで [key, value] の形のデータを渡すものであれば
何でも渡すことができます(例えば Hash など)。
require 'uri'
URI.encode_www_form({"a"=>"1",......め
送るデータのエンコーディングを変換したい場合はあらかじめ
変換しておいてください(例えば ASCII incompatible なものを
UTF-8 に変換する場合など)。
各要素のエンコーディングがばらばらの場合もあらかじめエンコーディ... -
Encoding
:: BINARY -> Encoding (6255.0) -
ASCII-8BIT、ASCII互換オクテット列用のエンコーディングです。
...ASCII-8BIT、ASCII互換オクテット列用のエンコーディングです。
もっぱら文字エンコーディングを持たないデータ、文字を符号化したのではない単なるバイトの列を表現するために用いますが、このエンコーディングは ASCII 互...