526件ヒット
[1-100件を表示]
(0.134秒)
ライブラリ
- ビルトイン (310)
- csv (36)
- digest (36)
- json (48)
-
net
/ ftp (24) -
net
/ imap (24) - pathname (12)
-
rubygems
/ dependency (12) -
rubygems
/ indexer (12) - zlib (12)
クラス
-
ARGF
. class (12) - Array (21)
- CSV (12)
-
CSV
:: Row (12) -
CSV
:: Table (12) -
Digest
:: Base (36) - Encoding (12)
-
Encoding
:: Converter (24) -
Gem
:: Dependency (12) -
Gem
:: Indexer (12) - IO (48)
- Integer (24)
-
JSON
:: State (36) -
Net
:: FTP (24) -
Net
:: IMAP (24) - Pathname (12)
- String (105)
- Symbol (12)
- Thread (10)
- Time (42)
-
Zlib
:: ZStream (12)
モジュール
キーワード
- << (12)
- <=> (48)
-
ascii
_ compatible? (12) -
ascii
_ only? (24) - asctime (12)
- b (12)
- binary (12)
- binary= (12)
- chr (24)
- concat (21)
- ctime (12)
-
data
_ type (12) - downcase (9)
-
force
_ encoding (12) - hexdigest (12)
- hexdigest! (12)
- inspect (42)
-
internal
_ encoding (24) - name= (10)
- pack (21)
- replacement (12)
- replacement= (12)
- sanitize (12)
-
set
_ encoding (36) - sort (12)
-
to
_ h (12) -
to
_ hash (12) -
to
_ json (12) -
to
_ s (24) -
uid
_ sort (12) - unpack (12)
- upcase! (3)
検索結果
先頭5件
-
Encoding
# ascii _ compatible? -> bool (12230.0) -
自身が ASCII 互換のエンコーディングである場合真返します。 そうでない場合は偽を返します。
...自身が ASCII 互換のエンコーディングである場合真返します。
そうでない場合は偽を返します。
//emlist[例][ruby]{
Encoding::UTF_8.ascii_compatible? #=> true
Encoding::UTF_16BE.ascii_compatible? #=> false
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (12107.0) -
自身から生成した JSON 形式の文字列を返します。
...ドは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のイ......::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_json # => "\\"
puts "𤘩宮城".to_json(ascii_o......nly: true) # => "\ud851\ude29\u5bae\u57ce"
//}... -
String
# ascii _ only? -> bool (9142.0) -
文字列がASCII文字のみで構成されている場合に true を返します。さもなくば false を返します。
...文字列がASCII文字のみで構成されている場合に true を返します。さもなくば
false を返します。
例:
'abc123'.ascii_only? # => true
''.ascii_only? # => true
'日本語'.ascii_only? # => false
'日本語abc123'.ascii_only? # => fal... -
JSON
:: State # ascii _ only? -> bool (9118.0) -
ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。 そうでない場合に偽を返します。
...
ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。
そうでない場合に偽を返します。... -
Time
# asctime -> String (9113.0) -
時刻を asctime(3) の形式の文字列に変換します。た だし、末尾の改行文字 "\n" は含まれません。
...を 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 00:00:00 2000"
//}... -
Time
# ctime -> String (9113.0) -
時刻を asctime(3) の形式の文字列に変換します。た だし、末尾の改行文字 "\n" は含まれません。
...を 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 00:00:00 2000"
//}... -
IO
# set _ encoding(ext _ enc , int _ enc , **opts) -> self (6307.0) -
IO のエンコーディングを設定します。
...ーディングを内部エンコーディングに変換する際の
オプションを指定します。
詳しくは String#encode を参照してください。
@param enc_str エンコーディングを表す文字列を指定します。"A:B" のようにコロンで区切られた......表します。
@param ext_enc 外部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換......のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BIT", "EUC-JP")... -
Gem
:: Indexer # sanitize(spec) -> Gem :: Specification (6213.0) -
与えられたスペックの詳細を表す属性をサニタイズします。
...与えられたスペックの詳細を表す属性をサニタイズします。
non-ASCII の文字列は、サイトインデックスを文字化けさせることがあります。
non-ASCII の文字列を XML エンティティに置換します。... -
IO
# set _ encoding(ext _ enc) -> self (6207.0) -
IO のエンコーディングを設定します。
...ーディングを内部エンコーディングに変換する際の
オプションを指定します。
詳しくは String#encode を参照してください。
@param enc_str エンコーディングを表す文字列を指定します。"A:B" のようにコロンで区切られた......表します。
@param ext_enc 外部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換......のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BIT", "EUC-JP")...