種類
ライブラリ
- ビルトイン (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件
-
UnboundMethod
# inspect -> String (18119.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect... -
ENV
. inspect -> String (18117.0) -
ENV オブジェクトを文字列化します。 Hash#inspect と同じように動作します。
...ENV オブジェクトを文字列化します。 Hash#inspect と同じように動作します。... -
Net
:: SMTP # inspect -> String (18117.0) -
@see Object#inspect
...@see Object#inspect... -
Encoding
# inspect -> String (18113.0) -
プログラマにわかりやすい表現の文字列を返します。
...プログラマにわかりやすい表現の文字列を返します。
//emlist[例][ruby]{
Encoding::UTF_8.inspect #=> "#<Encoding:UTF-8>"
Encoding::ISO_2022_JP.inspect #=> "#<Encoding:ISO-2022-JP (dummy)>"
//}... -
String
# inspect -> String (18113.0) -
文字列オブジェクトの内容を、出力したときに人間が読みやすいような適当な形式に変換します。 変換された文字列は印字可能な文字のみによって構成されます
...ために用意されています。
永続化などの目的で文字列をダンプしたいときは、
String#dump を使うべきです。
//emlist[例][ruby]{
# p ではないことに注意
puts "string".inspect # => "string"
puts "\t\r\n".inspect # => "\t\r\n"
//}
@see String#dump... -
Thread
# inspect -> String (18113.0) -
自身を人間が読める形式に変換した文字列を返します。
...自身を人間が読める形式に変換した文字列を返します。
//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//}... -
Time
# inspect -> String (18113.0) -
時刻を文字列に変換した結果を返します。
...で含めて返します。
//emlist[][ruby]{
t = Time.now
t.inspect #=> "2012-11-10 18:16:12.261257655 +0100"
t.strftime "%Y-%m-%d %H:%M:%S.%N %z" #=> "2012-11-10 18:16:12.261257655 +0100"
t.utc.inspect #=> "2012-11-10 17:16:12.261257655 UTC"... -
Array
# inspect -> String (18107.0) -
自身の情報を人間に読みやすい文字列にして返します。
...自身の情報を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
[1, 2, 3, 4].to_s # => "[1, 2, 3, 4]"
[1, 2, 3, 4].inspect # => "[1, 2, 3, 4]"
//}... -
BigDecimal
# inspect -> String (18107.0) -
BigDecimal オブジェクトを表す文字列を返します。
...BigDecimal オブジェクトを表す文字列を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1234.5678").inspect
# => "0.12345678e4"
//}... -
CSV
# inspect -> String (18107.0) -
ASCII 互換文字列で自身の情報を表したものを返します。
...ASCII 互換文字列で自身の情報を表したものを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.inspect # => "<#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
//}...