1105件ヒット
[1-100件を表示]
(0.170秒)
ライブラリ
- ビルトイン (626)
- bigdecimal (12)
- csv (36)
- ipaddr (12)
-
irb
/ context (72) -
irb
/ ext / math-mode (8) -
irb
/ inspector (24) -
irb
/ output-method (24) - matrix (24)
-
minitest
/ unit (1) -
net
/ smtp (12) - openssl (36)
- optparse (12)
- ostruct (24)
- pp (36)
- rake (36)
-
rdoc
/ context (12) - set (14)
-
shell
/ filter (6) - socket (24)
- strscan (12)
- sync (6)
-
win32
/ registry (12) - win32ole (12)
- zlib (12)
クラス
-
ARGF
. class (24) - Addrinfo (12)
- 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 (80) -
IRB
:: Inspector (24) -
IRB
:: OutputMethod (24) - Integer (24)
- MatchData (12)
- Matrix (12)
- Method (24)
- Module (51)
-
Net
:: SMTP (12) - Object (60)
-
OpenSSL
:: HMAC (36) - OpenStruct (24)
-
OptionParser
:: ParseError (12) - Proc (24)
-
Process
:: Status (12) -
RDoc
:: Context :: Section (12) -
Rake
:: Task (12) -
Rake
:: TaskArguments (24) - Range (12)
- Rational (12)
- Regexp (12)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (12) - Set (20)
-
Shell
:: Filter (6) -
Socket
:: Ifaddr (12) - String (24)
- StringScanner (12)
- Struct (24)
- Symbol (12)
- Thread (32)
-
Thread
:: Backtrace :: Location (12) - Time (6)
- TracePoint (12)
- TrueClass (12)
- UnboundMethod (36)
- Vector (12)
-
WIN32OLE
_ TYPE (12) -
Win32
:: Registry (12) -
Zlib
:: GzipFile :: Error (12)
モジュール
-
MiniTest
:: Assertions (1) -
Sync
_ m (6)
キーワード
- % (12)
- [] (12)
-
_ _ inspect _ _ (12) -
bind
_ call (12) -
const
_ added (3) -
const
_ missing (12) -
default
_ proc (12) - hexdigest (12)
- init (12)
-
initialize
_ copy (12) - inspect? (12)
-
inspect
_ mode (12) -
inspect
_ mode= (12) -
inspect
_ sockaddr (12) -
inspect
_ value (12) - math? (4)
-
math
_ mode (4) -
mu
_ pp (1) - name (12)
- pp (12)
- ppx (12)
-
pretty
_ inspect (12) -
pretty
_ print (12) -
pretty
_ print _ inspect (12) -
sync
_ inspect (6) -
to
_ s (205)
検索結果
先頭5件
-
Object
# inspect -> String (27244.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... -
OpenStruct
# inspect -> String (27208.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect... -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (27208.0) -
self のデバッグ用の情報を含んだ文字列を返します。
...self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}... -
RubyVM
:: InstructionSequence # inspect -> String (27208.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
Struct
# inspect -> String (27208.0) -
self の内容を人間に読みやすい文字列にして返します。
...ドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Sm......ith", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}... -
Encoding
:: Converter # inspect -> String (27202.0) -
Encoding::Converter オブジェクトの情報を簡単に表示します。
...Encoding::Converter オブジェクトの情報を簡単に表示します。
@return 変換器の情報を簡単に可視化した文字列です。... -
Vector
# inspect -> String (27202.0) -
オブジェクトの内容を文字列化します。
オブジェクトの内容を文字列化します。 -
Complex
# inspect -> String (24232.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 # => "(Na... -
Module
# inspect -> String (24232.0) -
モジュールやクラスの名前を文字列で返します。
...「CGI::Session」「Net::HTTP」が挙げられます。
@return 名前のないモジュール / クラスに対しては、name は nil を、それ以外はオブジェクト ID の文字列を返します。
//emlist[例][ruby]{
module A
module B
end
p B.name #=> "A::B"
class C
e......nd
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>"
//}...