ライブラリ
- ビルトイン (227)
-
cgi
/ core (11) -
cgi
/ html (99) -
cgi
/ session (11) - csv (132)
- etc (11)
- fiddle (88)
-
irb
/ context (11) - json (11)
- mkmf (11)
-
net
/ ftp (18) -
net
/ imap (44) -
net
/ pop (22) - openssl (198)
-
rexml
/ document (22) -
ripper
/ lexer (11) -
rubygems
/ config _ file (11) -
rubygems
/ validator (11) - securerandom (11)
- stringio (11)
- strscan (11)
- syslog (11)
- win32ole (55)
クラス
- BasicObject (11)
-
CGI
:: Session (11) - CSV (132)
-
Encoding
:: InvalidByteSequenceError (33) -
Fiddle
:: Function (11) -
Fiddle
:: Pointer (66) -
Gem
:: ConfigFile (11) -
Gem
:: Validator (11) -
IRB
:: Context (11) - Module (62)
-
Net
:: FTP :: MLSxEntry (18) -
Net
:: IMAP :: BodyTypeBasic (11) -
Net
:: IMAP :: BodyTypeMessage (11) -
Net
:: IMAP :: BodyTypeText (11) -
Net
:: IMAP :: Envelope (11) -
Net
:: POPMail (22) - Object (11)
-
OpenSSL
:: ASN1 :: ObjectId (55) -
OpenSSL
:: ASN1 :: VideotexString (22) -
OpenSSL
:: Engine (22) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: SSL :: Session (11) -
OpenSSL
:: X509 :: Attribute (11) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: ExtensionFactory (11) -
REXML
:: DocType (11) -
REXML
:: Entity (11) - Ripper (11)
- String (66)
- StringIO (11)
- StringScanner (11)
- Symbol (22)
- TracePoint (11)
- WIN32OLE (11)
-
WIN32OLE
_ TYPE (33) -
WIN32OLE
_ TYPELIB (11)
モジュール
-
CGI
:: HtmlExtension (99) -
CGI
:: QueryExtension (11) - Etc (11)
- Fiddle (11)
- JSON (11)
- Kernel (11)
-
OpenSSL
:: ASN1 (33) - Process (11)
- SecureRandom (11)
- Syslog (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
BUILD
_ RUBY _ PLATFORM (11) -
IDNAME
_ IVARS (11) - Id (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 1 . 0 (3) - Ruby用語集 (11)
-
SC
_ SAVED _ IDS (11) -
SYSTEM
_ WIDE _ CONFIG _ FILE (11) - StringValue (11)
- VIDEOTEXSTRING (11)
- VideotexString (33)
- [] (22)
-
_ _ id _ _ (11) - attr (9)
-
attr
_ accessor (3) -
attr
_ reader (3) -
attr
_ writer (3) - center (11)
-
col
_ sep (11) -
content
_ id (33) -
create
_ extension (11) -
create
_ guid (11) -
create
_ id (11) -
destination
_ encoding _ name (11) -
did
_ you _ mean (11) -
dir
_ config (11) -
error
_ bytes (11) -
external
_ id (11) - facts (9)
- filter (33)
- generate (11)
- guid (22)
- hidden (22)
- id2name (11)
- ident (11)
- img (11)
- inspect (11)
- instance (22)
- intern (11)
- irb (11)
- itself (11)
- ljust (11)
- ln (11)
-
long
_ name (11) - name (33)
-
net
/ smtp (11) - new (44)
- oid (33)
- open (44)
- pid (11)
- progid (11)
- progids (11)
- pubid (11)
-
public
_ instance _ method (11) -
rb
_ check _ convert _ type (11) -
rb
_ jump _ tag (11) -
rb
_ to _ id (11) -
readagain
_ bytes (11) -
remote
_ ident (11) -
remove
_ leading _ dot _ dir (11) - reset (22)
- rjust (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
session
_ id (11) -
session
_ id _ context (11) - setproctitle (11)
-
short
_ name (11) - slice (11)
- sn (11)
- submit (22)
-
to
_ s (44) -
to
_ str (22) -
to
_ sym (11) - uidl (11)
- unique (9)
-
unique
_ id (11) - uuid (11)
-
valid
_ encoding? (11)
検索結果
先頭5件
-
String
# valid _ encoding? -> bool (27100.0) -
文字列の内容が、現在のエンコーディングに照らしあわせて妥当であれば true を返します。さもなくば false を返します。
...て妥当であれば
true を返します。さもなくば false を返します。
//emlist[例][ruby]{
"\xc2\xa1".force_encoding("UTF-8").valid_encoding? #=> true
"\xc2".force_encoding("UTF-8").valid_encoding? #=> false
"\x80".force_encoding("UTF-8").valid_encoding? #=> false
//}... -
String
# center(width , padding = & # 39; & # 39;) -> String (21213.0) -
長さ width の文字列に self を中央寄せした文字列を返します。 self の長さが width より長い時には元の文字列の複製を返します。 また、第 2 引数 padding を指定したときは 空白文字の代わりに padding を詰めます。
...長さ width の文字列に self を中央寄せした文字列を返します。
self の長さが width より長い時には元の文字列の複製を返します。
また、第 2 引数 padding を指定したときは
空白文字の代わりに padding を詰めます。
@param width......返り値の文字列の最小の長さ
@param padding 長さが width になるまで self の両側に詰める文字
//emlist[例][ruby]{
p "foo".center(10) # => " foo "
p "foo".center(9) # => " foo "
p "foo".center(8) # => " foo "
p "foo".center(7) # =>......" foo "
p "foo".center(3) # => "foo"
p "foo".center(2) # => "foo"
p "foo".center(1) # => "foo"
p "foo".center(10, "*") # => "***foo****"
//}
@see String#ljust, String#rjust... -
String
# ljust(width , padding = & # 39; & # 39;) -> String (21213.0) -
長さ width の文字列に self を左詰めした文字列を返します。 self の長さが width より長い時には元の文字列の複製を返します。 また、第 2 引数 padding を指定したときは 空白文字の代わりに padding を詰めます。
...長さ width の文字列に self を左詰めした文字列を返します。
self の長さが width より長い時には元の文字列の複製を返します。
また、第 2 引数 padding を指定したときは
空白文字の代わりに padding を詰めます。
@param width......返り値の文字列の最小の長さ
@param padding 長さが width になるまで self の右側に詰める文字
//emlist[例][ruby]{
p "foo".ljust(10) # => "foo "
p "foo".ljust(9) # => "foo "
p "foo".ljust(8) # => "foo "
p "foo".ljust(2) # =>......"foo"
p "foo".ljust(1) # => "foo"
p "foo".ljust(10, "*") # => "foo*******"
//}
@see String#center, String#rjust... -
String
# rjust(width , padding = & # 39; & # 39;) -> String (21213.0) -
長さ width の文字列に self を右詰めした文字列を返します。 self の長さが width より長い時には元の文字列の複製を返します。 また、第 2 引数 padding を指定したときは 空白文字の代わりに padding を詰めます。
...長さ width の文字列に self を右詰めした文字列を返します。
self の長さが width より長い時には元の文字列の複製を返します。
また、第 2 引数 padding を指定したときは
空白文字の代わりに padding を詰めます。
@param width......返り値の文字列の最小の長さ
@param padding 長さが width になるまで self の左側に詰める文字
//emlist[例][ruby]{
p "foo".rjust(10) # => " foo"
p "foo".rjust(9) # => " foo"
p "foo".rjust(8) # => " foo"
p "foo".rjust(2) # =>......"foo"
p "foo".rjust(1) # => "foo"
p "foo".rjust(10, "*") # => "*******foo"
//}
@see String#center, String#ljust... -
String
# intern -> Symbol (21006.0) -
文字列に対応するシンボル値 Symbol を返します。
...値 Symbol を返します。
なお、このメソッドの逆にシンボルに対応する文字列を得るには
Symbol#to_s または Symbol#id2name を使います。
シンボル文字列にはヌルキャラクタ("\0")、空の文字列の使用も可能です。
//emlist[例][ruby]{
p... -
String
# to _ sym -> Symbol (21006.0) -
文字列に対応するシンボル値 Symbol を返します。
...値 Symbol を返します。
なお、このメソッドの逆にシンボルに対応する文字列を得るには
Symbol#to_s または Symbol#id2name を使います。
シンボル文字列にはヌルキャラクタ("\0")、空の文字列の使用も可能です。
//emlist[例][ruby]{
p... -
OpenSSL
:: SSL :: Session # id -> String (18224.0) -
セッション ID を返します。
...セッション ID を返します。
SSL/TLS はこのセッション ID でセッションを識別します。... -
OpenSSL
:: Engine # id -> String (18202.0) -
engine の識別子を文字列で返します。
engine の識別子を文字列で返します。
@see OpenSSL::Engine#name -
OpenSSL
:: ASN1 . # VideotexString(value) -> OpenSSL :: ASN1 :: VideotexString -> OpenSSL :: ASN1 :: VideotexString (12600.0) -
ASN.1 の VideotexString 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の VideotexString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::VideotexString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT も... -
OpenSSL
:: ASN1 . # VideotexString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: VideotexString (12400.0) -
ASN.1 の VideotexString 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の VideotexString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::VideotexString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT も...