別のキーワード
種類
ライブラリ
- ビルトイン (787)
- benchmark (12)
- csv (24)
- date (36)
- drb (12)
- etc (36)
-
irb
/ extend-command (12) - json (456)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) - kconv (96)
-
minitest
/ unit (1) - mkmf (12)
-
net
/ imap (36) -
net
/ pop (36) -
net
/ smtp (16) - objspace (24)
- openssl (108)
- pp (36)
- psych (79)
-
rdoc
/ code _ object (36) -
rdoc
/ generator / json _ index (12) - securerandom (12)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - shellwords (36)
- stringio (108)
- strscan (24)
-
test
/ unit (1) - tmpdir (24)
- win32ole (24)
-
yaml
/ dbm (72)
クラス
-
ARGF
. class (12) - Array (57)
- BasicObject (12)
-
Benchmark
:: Job (12) - BigDecimal (12)
- CSV (12)
-
CSV
:: FieldInfo (12) - Class (12)
- Complex (12)
-
DRb
:: DRbObject (12) - Date (36)
- DateTime (24)
- Dir (24)
- Encoding (12)
- Enumerator (24)
- Exception (12)
- File (12)
- IO (12)
-
JSON
:: Parser (12) -
JSON
:: State (120) - Module (84)
-
Net
:: IMAP (12) -
Net
:: IMAP :: Envelope (12) -
Net
:: IMAP :: FetchData (12) -
Net
:: POPMail (36) -
Net
:: SMTP (16) - Object (397)
-
OpenSSL
:: ASN1 :: ObjectId (60) -
OpenSSL
:: X509 :: Certificate (12) -
OpenSSL
:: X509 :: ExtensionFactory (12) -
OpenSSL
:: X509 :: Name (24) - OpenStruct (12)
-
Psych
:: ScalarScanner (12) -
RDoc
:: CodeObject (36) -
RDoc
:: Generator :: JsonIndex (12) - Random (12)
- Range (24)
- Rational (12)
- Regexp (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (165)
- StringIO (108)
- StringScanner (24)
- Struct (24)
- Symbol (12)
- Time (24)
- TracePoint (24)
-
WIN32OLE
_ VARIANT (24) -
YAML
:: DBM (72)
モジュール
- Etc (36)
-
IRB
:: ExtendCommandBundle (12) - JSON (120)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (36) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kconv (48)
- Kernel (12)
- Marshal (48)
-
MiniTest
:: Assertions (1) - ObjectSpace (24)
- Psych (43)
- Shellwords (24)
-
Test
:: Unit (1)
キーワード
- << (12)
- === (24)
- =~ (9)
-
DEFAULT
_ OBJECT _ TYPE (12) - Extend (24)
-
NEWS for Ruby 2
. 3 . 0 (10) -
OBJECT
_ TYPE _ TEMPLATE (12) - RSTRING (12)
-
RUBY
_ COPYRIGHT (12) -
RUBY
_ DESCRIPTION (12) -
RUBY
_ ENGINE (12) -
RUBY
_ ENGINE _ VERSION (10) -
RUBY
_ PLATFORM (12) -
RUBY
_ RELEASE _ DATE (12) -
RUBY
_ REVISION (6) -
RUBY
_ VERSION (12) - Rubyの起動 (12)
- Ruby用語集 (12)
-
SC
_ JOB _ CONTROL (12) -
SC
_ SHARED _ MEMORY _ OBJECTS (12) -
SC
_ TYPED _ MEMORY _ OBJECTS (12) -
SEARCH
_ INDEX _ FILE (12) - SecureRandom (12)
- VERSION (12)
- [] (24)
- []= (12)
-
_ _ drburi (12) -
_ _ id _ _ (12) -
_ dump (12) - all (12)
-
allocation
_ sourcefile (12) -
arg
_ config (12) -
array
_ nl (12) - attr (12)
- bigdecimal (12)
- bytes (12)
- class (12)
-
class
_ variable _ get (12) -
class
_ variable _ set (12) - clone (12)
- comment (12)
-
const
_ get (12) -
const
_ set (12) -
count
_ objects _ size (12) - cover? (12)
-
create
_ extension (12) -
create
_ id (12) -
def
_ extend _ command (12) -
define
_ singleton _ method (24) - dump (36)
-
dump
_ stream (12) - dup (12)
- encode (36)
-
fast
_ generate (12) -
fast
_ unparse (12) - freeze (12)
- generate (24)
- hash (12)
- header (12)
- indent (12)
- indent= (12)
- inspect (12)
- instance (12)
- invert (12)
- isjis (24)
- issjis (24)
- itself (12)
- jisx0301 (24)
- join (54)
-
json
_ creatable? (12) -
json
_ create (12) - list (12)
- ljust (12)
- ln (12)
- load (12)
-
long
_ name (12) - mail (12)
- match (12)
- method (12)
- mktmpdir (24)
-
mu
_ pp (1) -
name
_ list (12) - new (24)
-
object
_ nl (12) -
object
_ nl= (12) - oid (12)
- open (24)
- pack (21)
- pack テンプレート文字列 (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - pop (12)
-
pretty
_ generate (12) -
pretty
_ inspect (12) -
pretty
_ print _ inspect (12) -
pretty
_ print _ instance _ variables (12) -
pretty
_ unparse (12) - print (12)
- printf (12)
-
psych
_ to _ yaml (12) -
public
_ method (12) - putc (24)
- puts (12)
-
rb
_ f _ string (12) -
rb
_ jump _ tag (12) - reject (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) - responses (12)
- restore (12)
- rjust (12)
-
ruby 1
. 6 feature (12) -
safe
_ load (19) -
scan
_ full (12) -
search
_ full (12) - select (24)
-
setup
_ argv (1) - shelljoin (24)
- shift (12)
-
short
_ name (12) -
singleton
_ class (12) -
singleton
_ method (12) - sn (12)
- source (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - start (16)
- strftime (24)
- subject (12)
- syswrite (12)
- tainted? (6)
- then (14)
-
to
_ a (12) -
to
_ c (12) -
to
_ json (264) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (12) -
to
_ str (12) -
to
_ yaml (12) - tojis (24)
- tokenize (12)
- tosjis (24)
- trace (12)
-
try
_ convert (24) - unpack (12)
- unpack1 (9)
- unparse (12)
- value (12)
-
with
_ object (24) - write (12)
-
write
_ nonblock (12) -
yield
_ self (16) - 正規表現 (12)
検索結果
先頭5件
-
String
# ljust(width , padding = & # 39; & # 39;) -> String (27213.0) -
長さ width の文字列に self を左詰めした文字列を返します。 self の長さが width より長い時には元の文字列の複製を返します。 また、第 2 引数 padding を指定したときは 空白文字の代わりに padding を詰めます。
.../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 (27213.0) -
長さ width の文字列に self を右詰めした文字列を返します。 self の長さが width より長い時には元の文字列の複製を返します。 また、第 2 引数 padding を指定したときは 空白文字の代わりに padding を詰めます。
.../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
# tojis -> String (27201.0) -
self のエンコーディングを iso-2022-jp に変換した文字列を 返します。変換元のエンコーディングは文字列の内容から推測します。
...self のエンコーディングを iso-2022-jp に変換した文字列を
返します。変換元のエンコーディングは文字列の内容から推測します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換しま......す。
これらを変換したくない場合は、 NKF.#nkf('-jxm0', str)
を使ってください。
@see Kconv.#tojis... -
String
# tosjis -> String (27201.0) -
self のエンコーディングを shift_jis に変換した文字列を 返します。変換元のエンコーディングは文字列の内容から推測します。
...self のエンコーディングを shift_jis に変換した文字列を
返します。変換元のエンコーディングは文字列の内容から推測します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します......。
これらを変換したくない場合は、 NKF.#nkf('-sxm0', str)
を使ってください。
@see Kconv.#tosjis... -
String
# isjis -> bool (27100.0) -
self が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
...self が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
Kconv.isjis(self) と同じです。... -
String
# issjis -> bool (27100.0) -
self が Shift_JIS なバイト列として正当であるかどうかを判定します。
...self が Shift_JIS なバイト列として正当であるかどうかを判定します。
Kconv.#issjis と同じです。... -
String
. try _ convert(obj) -> String | nil (21229.0) -
obj を String に変換しようと試みます。変換には Object#to_str メソッ ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ た場合は nil が返されます。
...obj を String に変換しようと試みます。変換には Object#to_str メソッ
ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ
た場合は nil が返されます。
@param obj 変換する任意のオブジェクト
@return......変換後の文字列または nil
//emlist[例][ruby]{
String.try_convert("str") # => "str"
String.try_convert(/re/) # => nil
//}... -
String
# encode(**options) -> String (21139.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......s.encode("EUC-JP")
s.encode(Encoding::UTF_8)
# U+00B7 MIDDLE DOT, U+2014 EM DASH は対応する文字が Windows-31J には
# 存在しないのでそのまま変換しようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: {......"\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , **options) -> String (21139.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......s.encode("EUC-JP")
s.encode(Encoding::UTF_8)
# U+00B7 MIDDLE DOT, U+2014 EM DASH は対応する文字が Windows-31J には
# 存在しないのでそのまま変換しようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: {......"\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!...