種類
ライブラリ
- ビルトイン (879)
- bigdecimal (12)
- csv (36)
- ipaddr (12)
-
irb
/ context (84) -
irb
/ ext / math-mode (8) -
irb
/ inspector (84) -
irb
/ output-method (24) - matrix (24)
-
minitest
/ unit (1) -
net
/ smtp (12) - openssl (36)
- optparse (12)
- ostruct (36)
- pp (36)
- rake (36)
-
rdoc
/ context (12) - set (14)
- shell (6)
-
shell
/ filter (6) - socket (36)
- strscan (12)
- sync (6)
- thwait (24)
-
win32
/ registry (12) - win32ole (24)
- zlib (12)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Array (24)
- BigDecimal (12)
- Bignum (6)
- CSV (12)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Complex (12)
- Data (6)
- Dir (12)
- Encoding (12)
-
Encoding
:: Converter (12) -
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Chain (7) - Exception (12)
- FalseClass (24)
- Fixnum (6)
- Float (24)
- Hash (36)
- IPAddr (12)
-
IRB
:: Context (92) -
IRB
:: Inspector (48) -
IRB
:: OutputMethod (24) - Integer (24)
- MatchData (12)
- Matrix (12)
- Method (24)
- Module (51)
-
Net
:: SMTP (12) - Object (60)
-
OpenSSL
:: HMAC (36) - OpenStruct (36)
-
OptionParser
:: ParseError (12) - Proc (24)
-
Process
:: Status (12) -
RDoc
:: Context :: Section (12) -
Rake
:: Task (12) -
Rake
:: TaskArguments (24) - Range (24)
- Rational (24)
- Regexp (24)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (12) - Set (20)
- Shell (6)
-
Shell
:: Filter (6) -
Socket
:: Ifaddr (12) - String (24)
- StringScanner (12)
- Struct (24)
- Symbol (12)
- Thread (42)
-
Thread
:: Backtrace :: Location (12) - ThreadsWait (24)
- Time (21)
- TracePoint (12)
- TrueClass (12)
- UnboundMethod (36)
- Vector (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12) -
Win32
:: Registry (12) -
Zlib
:: GzipFile :: Error (12)
モジュール
- IRB (12)
- Kernel (132)
-
MiniTest
:: Assertions (1) -
Sync
_ m (6)
キーワード
- % (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - INSPECTORS (12)
- InspectKey (12)
- Inspector (24)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NO
_ INSPECTING _ IVARS (12) - Numeric (12)
- Thread (12)
- [] (12)
-
_ _ inspect _ _ (12) - ` (12)
- abort (24)
-
all
_ waits (18) -
bind
_ call (12) - cgi (12)
-
const
_ added (3) -
const
_ missing (12) - debug= (6)
-
def
_ inspector (12) -
default
_ proc (12) -
drb
/ gw (12) - exit (12)
- format (12)
- handler= (12)
- hexdigest (12)
- init (12)
-
initialize
_ copy (12) - inspect? (12)
-
inspect
_ i (12) -
inspect
_ mode (12) -
inspect
_ mode= (12) -
inspect
_ obj (12) -
inspect
_ sockaddr (12) -
inspect
_ value (12) - irb (12)
-
irb
/ completion (12) -
irb
/ ext / math-mode (4) -
irb
/ inspector (12) -
keys
_ with _ inspector (12) - math? (4)
-
math
_ mode (4) -
method
_ inspect (12) -
mu
_ pp (1) - name (12)
- name= (10)
- new (30)
- now (3)
- p (12)
- pp (12)
- ppx (12)
-
pretty
_ inspect (12) -
pretty
_ print (12) -
pretty
_ print _ inspect (12) -
rb
_ inspect (12) -
rb
_ obj _ inspect (12) -
rb
_ thread _ inspect (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) - sprintf (12)
- sprintf フォーマット (12)
-
sync
_ inspect (6) -
to
_ s (253) -
trace
_ var (36) -
untrace
_ var (12) - クラス/メソッドの定義 (12)
- スレッド (12)
- パターンマッチ (12)
検索結果
先頭5件
-
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:\"\\\"\">"
//}... -
CSV
:: Row # inspect -> String (18107.0) -
ASCII 互換であるエンコーディングの文字列で自身の情報を返します。
...ASCII 互換であるエンコーディングの文字列で自身の情報を返します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header1"], [1, 2, 3])
row.inspect # => "#<CSV::Row \"header1\":1 \"header2\":2 \"header1\":3>"
//}... -
CSV
:: Table # inspect -> String (18107.0) -
モードとサイズを US-ASCII な文字列で返します。
...モードとサイズを US-ASCII な文字列で返します。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.inspect # => "#<CSV::Table mode:col_or_row row_count:2>"
//}... -
Data
# inspect -> String (18107.0) -
self の内容を人間に読みやすい文字列にして返します。
...ます。
//emlist[例][ruby]{
Customer = Data.define(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<data Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}
[注意] 本メソッドの記述は Data のサブ... -
Dir
# inspect -> String (18107.0) -
self の情報を人間に読みやすい文字列にして返します。
...self の情報を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
Dir.open("/") { |d| d.inspect } # => "#<Dir:/>"
//}... -
Exception
# inspect -> String (18107.0) -
self のクラス名と message を文字列にして返します。
...self のクラス名と message を文字列にして返します。
//emlist[例][ruby]{
begin
raise "exception"
rescue
p $!.inspect # => "#<RuntimeError: exception>"
end
//}... -
Hash
# inspect -> String (18107.0) -
ハッシュの内容を人間に読みやすい文字列にして返します。
...ハッシュの内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
h = { "c" => 300, "a" => 100, "d" => 400 }
h.inspect # => "{\"c\"=>300, \"a\"=>100, \"d\"=>400}"
//}... -
Matrix
# inspect -> String (18107.0) -
自分自身を見やすい形式に文字列化し、その文字列を返します。
...自分自身を見やすい形式に文字列化し、その文字列を返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [3, 4.5]
m = Matrix[a1, a2]
p m.inspect # => "Matrix[[1, 2], [3, 4.5]]"
//}... -
OpenStruct
# inspect -> String (18107.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect...