種類
ライブラリ
- ビルトイン (782)
- bigdecimal (11)
- csv (33)
- ipaddr (11)
-
irb
/ context (77) -
irb
/ ext / math-mode (8) -
irb
/ inspector (77) -
irb
/ output-method (22) - matrix (22)
-
minitest
/ unit (1) -
net
/ smtp (11) - openssl (33)
- optparse (11)
- ostruct (33)
- pp (33)
- rake (33)
-
rdoc
/ context (11) - set (18)
- shell (6)
-
shell
/ filter (6) - socket (33)
- strscan (11)
- sync (6)
- thwait (24)
-
win32
/ registry (11) - win32ole (22)
- zlib (11)
クラス
-
ARGF
. class (22) - Addrinfo (22)
- Array (22)
- BigDecimal (11)
- Bignum (6)
- CSV (11)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Complex (11)
- Data (4)
- Dir (11)
- Encoding (11)
-
Encoding
:: Converter (11) -
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Chain (6) - Exception (11)
- FalseClass (22)
- Fixnum (6)
- Float (22)
- Hash (33)
- IPAddr (11)
-
IRB
:: Context (85) -
IRB
:: Inspector (44) -
IRB
:: OutputMethod (22) - Integer (22)
- MatchData (11)
- Matrix (11)
- Method (22)
- Module (46)
-
Net
:: SMTP (11) - Object (55)
-
OpenSSL
:: HMAC (33) - OpenStruct (33)
-
OptionParser
:: ParseError (11) - Proc (22)
-
Process
:: Status (11) -
RDoc
:: Context :: Section (11) -
Rake
:: Task (11) -
Rake
:: TaskArguments (22) - Range (22)
- Rational (22)
- Regexp (22)
-
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (11) - Set (18)
- Shell (6)
-
Shell
:: Filter (6) -
Socket
:: Ifaddr (11) - String (22)
- StringScanner (11)
- Struct (22)
- Symbol (11)
- Thread (38)
-
Thread
:: Backtrace :: Location (11) - ThreadsWait (24)
- Time (5)
- TracePoint (11)
- TrueClass (11)
- UnboundMethod (32)
- Vector (11)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ TYPE (11) -
Win32
:: Registry (11) -
Zlib
:: GzipFile :: Error (11)
モジュール
- IRB (11)
- Kernel (121)
-
MiniTest
:: Assertions (1) -
Sync
_ m (6)
キーワード
- % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - INSPECTORS (11)
- InspectKey (11)
- Inspector (22)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NO
_ INSPECTING _ IVARS (11) - Numeric (11)
- Thread (11)
- [] (11)
-
_ _ inspect _ _ (11) - ` (11)
- abort (22)
-
all
_ waits (18) -
bind
_ call (10) - cgi (11)
-
const
_ added (2) -
const
_ missing (11) - debug= (6)
-
def
_ inspector (11) -
default
_ proc (11) -
drb
/ gw (11) - exit (11)
- format (11)
- handler= (11)
- hexdigest (11)
- init (11)
-
initialize
_ copy (11) - inspect? (11)
-
inspect
_ i (11) -
inspect
_ mode (11) -
inspect
_ mode= (11) -
inspect
_ obj (11) -
inspect
_ sockaddr (11) -
inspect
_ value (11) - irb (11)
-
irb
/ completion (11) -
irb
/ ext / math-mode (4) -
irb
/ inspector (11) -
keys
_ with _ inspector (11) - math? (4)
-
math
_ mode (4) -
method
_ inspect (11) -
mu
_ pp (1) - name (11)
- name= (9)
- new (17)
- p (11)
- pp (11)
- ppx (11)
-
pretty
_ inspect (11) -
pretty
_ print (11) -
pretty
_ print _ inspect (11) -
rb
_ inspect (11) -
rb
_ obj _ inspect (11) -
rb
_ thread _ inspect (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) - sprintf (11)
- sprintf フォーマット (11)
-
sync
_ inspect (6) -
to
_ s (231) -
trace
_ var (33) -
untrace
_ var (11) - クラス/メソッドの定義 (11)
- スレッド (11)
検索結果
先頭5件
-
Hash
# to _ s -> String (3007.0) -
ハッシュの内容を人間に読みやすい文字列にして返します。
...ハッシュの内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
h = { "c" => 300, "a" => 100, "d" => 400 }
h.inspect # => "{\"c\"=>300, \"a\"=>100, \"d\"=>400}"
//}... -
OpenStruct
# to _ s -> String (3007.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect... -
Rake
:: TaskArguments # to _ s -> String (3007.0) -
自身を人間に読みやすい文字列にして返します。
...自身を人間に読みやすい文字列にして返します。
@see Hash#inspect... -
Set
# to _ s -> String (3007.0) -
人間の読みやすい形に表現した文字列を返します。
...人間の読みやすい形に表現した文字列を返します。
//emlist[][ruby]{
require 'set'
puts Set.new(['element1', 'element2']).inspect
# => #<Set: {"element1", "element2"}>
//}... -
Struct
# to _ s -> String (3007.0) -
self の内容を人間に読みやすい文字列にして返します。
...クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}... -
ARGF
. class # to _ s -> String (3001.0) -
常に文字列 "ARGF" を返します。
常に文字列 "ARGF" を返します。 -
Bignum
# to _ s(base = 10) -> String (3001.0) -
self を引数で指定した基数の文字列表現に変換します。
self を引数で指定した基数の文字列表現に変換します。
@param base 基数を 2 から 36 の整数で指定します。
12345654321.to_s #=> "12345654321"
12345654321.to_s(2) #=> "1011011111110110111011110000110001"
12345654321.to_s(8) #=> "133766736061"
12345654321.to_s(16) #=> "2dfdbbc31"
78546939656932.to_s(36) ... -
FalseClass
# to _ s -> String (3001.0) -
常に文字列 "false" を返します。
常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//} -
Fixnum
# to _ s(base = 10) -> String (3001.0) -
self を引数で指定した基数の文字列表現に変換します。
self を引数で指定した基数の文字列表現に変換します。
@param base 基数を 2 から 36 の整数で指定します。
12345.to_s #=> "12345"
12345.to_s(2) #=> "11000000111001"
12345.to_s(8) #=> "30071"
12345.to_s(10) #=> "12345"
12345.to_s(16) #=> "3039"
12345.to_s(36) #=> "9ix" -
Float
# to _ s -> String (3001.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
固定小数点、浮動小数点の形式か、 "Infinity"、"-Infinity"、"NaN" のいず
れかを返します。
@return 文字列を返します。
//emlist[例][ruby]{
0.00001.to_s # => "1.0e-05"
3.14.to_s # => "3.14"
10000_00000_00000.0.to_s # => "100000000000000.0"
10000_00000_00000_00000.0.to_s # => "1.0e+19"
... -
IRB
:: Context # to _ s -> String (3001.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。