1433件ヒット
[1-100件を表示]
(0.052秒)
種類
ライブラリ
- ビルトイン (684)
- bigdecimal (11)
- csv (33)
- ipaddr (11)
-
irb
/ context (77) -
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
/ filter (6) - socket (33)
- strscan (11)
- sync (6)
- thwait (24)
-
win32
/ registry (11) - win32ole (11)
- 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 (77) -
IRB
:: Inspector (44) -
IRB
:: OutputMethod (22) - Integer (22)
- MatchData (11)
- Matrix (11)
- Method (22)
- Module (33)
-
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 (11)
- Rational (11)
- Regexp (22)
-
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (11) - Set (18)
-
Shell
:: Filter (6) -
Socket
:: Ifaddr (11) - String (22)
- StringScanner (11)
- Struct (22)
- Symbol (11)
- Thread (29)
-
Thread
:: Backtrace :: Location (11) - ThreadsWait (24)
- Time (5)
- TracePoint (11)
- TrueClass (11)
- UnboundMethod (22)
- Vector (11)
-
WIN32OLE
_ TYPE (11) -
Win32
:: Registry (11) -
Zlib
:: GzipFile :: Error (11)
モジュール
- IRB (11)
- Kernel (77)
-
MiniTest
:: Assertions (1) -
Sync
_ m (6)
キーワード
- % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - INSPECTORS (11)
- InspectKey (11)
- Inspector (22)
-
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) -
all
_ waits (18) -
def
_ inspector (11) -
default
_ proc (11) - format (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
/ inspector (11) -
keys
_ with _ inspector (11) -
method
_ inspect (11) -
mu
_ pp (1) - name (11)
- new (17)
- 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
. 9 feature (11) - sprintf (11)
- sprintf フォーマット (11)
-
sync
_ inspect (6) -
to
_ s (209) -
trace
_ var (33) -
untrace
_ var (11) - クラス/メソッドの定義 (11)
- スレッド (11)
検索結果
先頭5件
-
static VALUE inspect
_ obj(VALUE obj , VALUE str) (32200.0) -
-
static int inspect
_ i(ID id , VALUE value , VALUE str) (32200.0) -
-
OpenStruct
# inspect -> String (27207.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect... -
WIN32OLE
_ TYPE # inspect -> String (27207.0) -
selfを説明的な文字列で表現します。
...ます。
@return "#<WIN32OLE_TYPE"とWIN32OLE_TYPE#to_sの結果を「:」で結合
し、「>」で閉じた文字列を返します。
x = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts x.inspect #=> #<WIN32OLE_TYPE:Worksheet>
@see WIN32OLE_TYPE#to_s... -
Method
# inspect -> String (24255.0) -
self を読みやすい文字列として返します。
...式の文字列を返します。
#<Method: klass1(klass2)#method> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。
klass2......します。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo>
p Bar.new.method(:bar) # => #<Method: Bar#bar>
//}
klass1 と klass2 が同じ場合は以下の形式になり......bj
def foo
end
end
p obj.method(:foo) # => #<Method: "".foo>
# クラスメソッド(クラスの特異メソッド)
class Foo
def Foo.foo
end
end
p Foo.method(:foo) # => #<Method: Foo.foo>
# スーパークラスのクラスメソッド
class Bar < Foo
end
p Bar.method(:foo)......の文字列を返します。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。
klass2......//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}
klass1 と klass2 が同じ場合は以......end
end
p obj.method(:foo) # => #<Method: "".foo() foo.rb:4>
# クラスメソッド(クラスの特異メソッド)
class Foo
def Foo.foo
end
end
p Foo.method(:foo) # => #<Method: Foo.foo() foo.rb:11>
# スーパークラスのクラスメソッド
class Bar < Foo
end
p Bar.metho... -
Module
# inspect -> String (24249.0) -
モジュールやクラスの名前を文字列で返します。
...P」が挙げられます。
@return 名前のないモジュール / クラスに対しては、name は nil を、それ以外はオブジェクト ID の文字列を返します。
//emlist[例][ruby]{
module A
module B
end
p B.name #=> "A::B"
class C
end
end
p A.name #=> "A"
p......A::B.name #=> "A::B"
p A::C.name #=> "A::C"
# 名前のないモジュール / クラス
p Module.new.name #=> nil
p Class.new.name #=> nil
p Module.new.to_s #=> "#<Module:0x00007f90b09112c8>"
p Class.new.to_s #=> "#<Class:0x00007fa5c40b41b0>"
//}... -
Object
# inspect -> String (24243.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...み込み関数 Kernel.#p は、このメソッドの結果を使用して
オブジェクトを表示します。
//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... -
Complex
# inspect -> String (24231.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...][ruby]{
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+N... -
Range
# inspect -> String (24229.0) -
self を文字列に変換します(始端と終端のオブジェクトは #inspect メソッド で文字列に変換されます)。
...self を文字列に変換します(始端と終端のオブジェクトは #inspect メソッド
で文字列に変換されます)。
@see Range#to_s
//emlist[例][ruby]{
(1..5).inspect # => "1..5"
("1".."5").inspect # => "\"1\"..\"5\""
//}... -
Integer
# inspect(base=10) -> String (24225.0) -
整数を 10 進文字列表現に変換します。
...を基数とした文字列表
現に変換します。
//emlist[][ruby]{
p 10.to_s(2) # => "1010"
p 10.to_s(8) # => "12"
p 10.to_s(16) # => "a"
p 35.to_s(36) # => "z"
//}
@return 数値の文字列表現
@param base 基数となる 2 - 36 の数値。
@raise ArgumentError base に 2...