種類
ライブラリ
- ビルトイン (706)
- bigdecimal (10)
- csv (30)
- ipaddr (10)
-
irb
/ context (70) -
irb
/ ext / math-mode (8) -
irb
/ inspector (70) -
irb
/ output-method (20) - matrix (20)
-
minitest
/ unit (1) -
net
/ smtp (10) - openssl (30)
- optparse (10)
- ostruct (30)
- pp (30)
- rake (30)
-
rdoc
/ context (10) - set (16)
- shell (6)
-
shell
/ filter (6) - socket (30)
- strscan (10)
- sync (6)
- thwait (24)
-
win32
/ registry (10) - win32ole (20)
- zlib (10)
クラス
-
ARGF
. class (20) - Addrinfo (20)
- Array (20)
- BigDecimal (10)
- Bignum (6)
- CSV (10)
-
CSV
:: Row (10) -
CSV
:: Table (10) - Complex (10)
- Data (2)
- Dir (10)
- Encoding (10)
-
Encoding
:: Converter (10) -
Enumerator
:: ArithmeticSequence (5) -
Enumerator
:: Chain (5) - Exception (10)
- FalseClass (20)
- Fixnum (6)
- Float (20)
- Hash (30)
- IPAddr (10)
-
IRB
:: Context (78) -
IRB
:: Inspector (40) -
IRB
:: OutputMethod (20) - Integer (20)
- MatchData (10)
- Matrix (10)
- Method (20)
- Module (41)
-
Net
:: SMTP (10) - Object (50)
-
OpenSSL
:: HMAC (30) - OpenStruct (30)
-
OptionParser
:: ParseError (10) - Proc (20)
-
Process
:: Status (10) -
RDoc
:: Context :: Section (10) -
Rake
:: Task (10) -
Rake
:: TaskArguments (20) - Range (20)
- Rational (20)
- Regexp (20)
-
RubyVM
:: AbstractSyntaxTree :: Node (5) -
RubyVM
:: InstructionSequence (10) - Set (16)
- Shell (6)
-
Shell
:: Filter (6) -
Socket
:: Ifaddr (10) - String (20)
- StringScanner (10)
- Struct (20)
- Symbol (10)
- Thread (34)
-
Thread
:: Backtrace :: Location (10) - ThreadsWait (24)
- Time (4)
- TracePoint (10)
- TrueClass (10)
- UnboundMethod (28)
- Vector (10)
-
WIN32OLE
_ EVENT (10) -
WIN32OLE
_ TYPE (10) -
Win32
:: Registry (10) -
Zlib
:: GzipFile :: Error (10)
モジュール
- IRB (10)
- Kernel (110)
-
MiniTest
:: Assertions (1) -
Sync
_ m (6)
キーワード
- % (10)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (10) - INSPECTORS (10)
- InspectKey (10)
- Inspector (20)
-
NEWS for Ruby 2
. 0 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (4) -
NO
_ INSPECTING _ IVARS (10) - Numeric (10)
- Thread (10)
- [] (10)
-
_ _ inspect _ _ (10) - ` (10)
- abort (20)
-
all
_ waits (18) -
bind
_ call (8) - cgi (10)
-
const
_ added (1) -
const
_ missing (10) - debug= (6)
-
def
_ inspector (10) -
default
_ proc (10) -
drb
/ gw (10) - exit (10)
- format (10)
- handler= (10)
- hexdigest (10)
- init (10)
-
initialize
_ copy (10) - inspect? (10)
-
inspect
_ i (10) -
inspect
_ mode (10) -
inspect
_ mode= (10) -
inspect
_ obj (10) -
inspect
_ sockaddr (10) -
inspect
_ value (10) - irb (10)
-
irb
/ completion (10) -
irb
/ ext / math-mode (4) -
irb
/ inspector (10) -
keys
_ with _ inspector (10) - math? (4)
-
math
_ mode (4) -
method
_ inspect (10) -
mu
_ pp (1) - name (10)
- name= (8)
- new (16)
- p (10)
- pp (10)
- ppx (10)
-
pretty
_ inspect (10) -
pretty
_ print (10) -
pretty
_ print _ inspect (10) -
rb
_ inspect (10) -
rb
_ obj _ inspect (10) -
rb
_ thread _ inspect (10) -
ruby 1
. 6 feature (10) -
ruby 1
. 8 . 2 feature (10) -
ruby 1
. 8 . 4 feature (10) -
ruby 1
. 8 . 5 feature (10) -
ruby 1
. 9 feature (10) - sprintf (10)
- sprintf フォーマット (10)
-
sync
_ inspect (6) -
to
_ s (209) -
trace
_ var (30) -
untrace
_ var (10) - クラス/メソッドの定義 (10)
- スレッド (10)
検索結果
先頭5件
-
static VALUE inspect
_ obj(VALUE obj , VALUE str) (26100.0) -
-
static int inspect
_ i(ID id , VALUE value , VALUE str) (26100.0) -
-
Complex
# inspect -> String (18131.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...uby]{
Complex(2).inspect # => "(2+0i)"
Complex('-8/6').inspect # => "((-4/3)+0i)"
Complex('1/2i').inspect # => "(0+(1/2)*i)"
Complex(0, Float::INFINITY).inspect # => "(0+Infinity*i)"
Complex(Float::NAN, Float::NAN).inspect # => "(NaN+NaN*... -
Object
# inspect -> String (18131.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...して
オブジェクトを表示します。
//emlist[][ruby]{
[ 1, 2, 3..4, 'five' ].inspect # => "[1, 2, 3..4, \"five\"]"
Time.new.inspect # => "2008-03-08 19:43:39 +0900"
//}
inspect メソッドをオーバーライドしなかった場合、クラス名とインスタン......変数の名前、値の組を元にした文字列を返します。
//emlist[][ruby]{
class Foo
end
Foo.new.inspect # => "#<Foo:0x0300c868>"
class Bar
def initialize
@bar = 1
end
end
Bar.new.inspect # => "#<Bar:0x0300c868 @bar=1>"
//}
@see Kernel.#p... -
Range
# inspect -> String (18129.0) -
self を文字列に変換します(始端と終端のオブジェクトは #inspect メソッド で文字列に変換されます)。
...self を文字列に変換します(始端と終端のオブジェクトは #inspect メソッド
で文字列に変換されます)。
@see Range#to_s
//emlist[例][ruby]{
(1..5).inspect # => "1..5"
("1".."5").inspect # => "\"1\"..\"5\""
//}... -
MatchData
# inspect -> String (18125.0) -
self の内容を人間に読みやすい文字列にして返します。
...]{
puts /.$/.match("foo").inspect
# => #<MatchData "o">
puts /(.)(.)(.)/.match("foo").inspect
# => #<MatchData "foo" 1:"f" 2:"o" 3:"o">
puts /(.)(.)?(.)/.match("fo").inspect
# => #<MatchData "fo" 1:"f" 2:nil 3:"o">
puts /(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").inspect
# => #<MatchData "hog" fo... -
Rational
# inspect -> String (18125.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...に10進数の表記を返します。
@return 有理数の表記にした文字列を返します。
//emlist[例][ruby]{
Rational(5, 8).inspect # => "(5/8)"
Rational(2).inspect # => "(2/1)"
Rational(-8, 6).inspect # => "(-4/3)"
Rational(0.5).inspect # => "(1/2)"
//}
@see Rational#to_s... -
StringScanner
# inspect -> String (18125.0) -
StringScannerオブジェクトを表す文字列を返します。
...st string')
s.inspect # => "#<StringScanner 0/11 @ \"test ...\">"
s.scan(/\w+/) # => "test"
s.inspect # => "#<StringScanner 4/11 \"test\" @ \" stri...\">"
s.scan(/\s+/) # => " "
s.inspect......# => "#<StringScanner 5/11 \"test \" @ \"strin...\">"
s.scan(/\w+/) # => "string"
s.inspect # => "#<StringScanner fin>"
//}... -
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...