298件ヒット
[1-100件を表示]
(0.090秒)
種類
- インスタンスメソッド (165)
- 文書 (78)
- ライブラリ (33)
- クラス (11)
- 定数 (11)
ライブラリ
- ビルトイン (79)
-
irb
/ context (66) -
irb
/ ext / math-mode (8) -
minitest
/ unit (1) - optparse (11)
-
rdoc
/ context (11) - win32ole (11)
クラス
-
Encoding
:: Converter (11) - Exception (11)
-
IRB
:: Context (74) - Module (2)
-
OptionParser
:: ParseError (11) -
RDoc
:: Context :: Section (11) - Rational (22)
-
RubyVM
:: InstructionSequence (11) -
Thread
:: Backtrace :: Location (11) -
WIN32OLE
_ EVENT (11)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NO
_ INSPECTING _ IVARS (11) - Thread (11)
-
_ _ inspect _ _ (11) - cgi (11)
-
const
_ added (2) - handler= (11)
- inspect? (11)
-
inspect
_ mode (11) - irb (11)
-
irb
/ completion (11) - math? (4)
-
math
_ mode (4) -
mu
_ pp (1) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
to
_ s (22) - スレッド (11)
検索結果
先頭5件
-
RDoc
:: Context :: Section # inspect -> String (24201.0) -
自身の情報を人間に読みやすい文字列にして返します。
自身の情報を人間に読みやすい文字列にして返します。 -
Rational
# inspect -> String (21225.0) -
自身を人間が読みやすい形の文字列表現にして返します。
..."(3/5)", "(-17/7)" のように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... -
Exception
# inspect -> String (21207.0) -
self のクラス名と message を文字列にして返します。
...self のクラス名と message を文字列にして返します。
//emlist[例][ruby]{
begin
raise "exception"
rescue
p $!.inspect # => "#<RuntimeError: exception>"
end
//}... -
OptionParser
:: ParseError # inspect -> String (21207.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...自身を人間が読みやすい形の文字列表現にして返します。
@return 文字列を返します。
@see Object#inspect... -
RubyVM
:: InstructionSequence # inspect -> String (21207.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
Thread
:: Backtrace :: Location # inspect -> String (21207.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
...ace::Location#to_s の結果を人間が読みやすいような文
字列に変換したオブジェクトを返します。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |......call|
puts call.inspect
end
# => "path/to/foo.rb:5:in `initialize'"
# "path/to/foo.rb:9:in `new'"
# "path/to/foo.rb:9:in `<main>'"
//}... -
Encoding
:: Converter # inspect -> String (21201.0) -
Encoding::Converter オブジェクトの情報を簡単に表示します。
...Encoding::Converter オブジェクトの情報を簡単に表示します。
@return 変換器の情報を簡単に可視化した文字列です。... -
IRB
:: Context # inspect -> String (21201.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。 -
IRB
:: Context # inspect? -> bool (9229.0) -
IRB::Context#inspect_mode が有効かどうかを返します。
...IRB::Context#inspect_mode が有効かどうかを返します。
@return 出力結果に to_s したものを表示する場合は false を返します。それ
以外の場合は true を返します。
@see IRB::Context#inspect_mode, IRB::Context#inspect_mode=... -
IRB
:: Context # inspect _ mode -> object | nil (9207.0) -
実行結果の出力方式を返します。
...実行結果の出力方式を返します。
@see IRB::Context#inspect_mode=...