種類
ライブラリ
- ビルトイン (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件
-
Method
# inspect -> String (18119.0) -
self を読みやすい文字列として返します。
...式の文字列を返します。
#<Method: klass1(klass2)#method> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。
klass2......# スーパークラスのクラスメソッド
class Bar < Foo
end
p Bar.method(:foo) # => #<Method: Bar.foo>
# 以下は(形式1)の出力になる
module Baz
def baz
end
end
class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: Object(Baz)#baz>
//}
@see Object#inspect......の文字列を返します。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。
klass2......ラスメソッド
class Bar < Foo
end
p Bar.method(:foo) # => #<Method: Bar(Foo).foo() foo.rb:11>
# 以下は(形式1)の出力になる
module Baz
def baz
end
end
class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: String(Baz)#baz() foo.rb:23>
//}
@see Object#inspect... -
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"
//}...