356件ヒット
[1-100件を表示]
(0.026秒)
ライブラリ
- ビルトイン (105)
-
irb
/ context (84) -
irb
/ ext / math-mode (8) -
minitest
/ unit (1) - optparse (12)
-
rdoc
/ context (12) - win32ole (12)
クラス
-
Encoding
:: Converter (12) - Exception (12)
-
IRB
:: Context (92) - Module (15)
-
OptionParser
:: ParseError (12) -
RDoc
:: Context :: Section (12) - Rational (24)
-
RubyVM
:: InstructionSequence (12) -
Thread
:: Backtrace :: Location (12) - Time (6)
-
WIN32OLE
_ EVENT (12)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NO
_ INSPECTING _ IVARS (12) - Thread (12)
-
_ _ inspect _ _ (12) - cgi (12)
-
const
_ added (3) -
const
_ missing (12) - handler= (12)
- inspect? (12)
-
inspect
_ mode (12) -
inspect
_ mode= (12) - irb (12)
-
irb
/ completion (12) - math? (4)
-
math
_ mode (4) -
mu
_ pp (1) - new (6)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
to
_ s (24) - スレッド (12)
検索結果
先頭5件
-
RDoc
:: Context :: Section # inspect -> String (24101.0) -
自身の情報を人間に読みやすい文字列にして返します。
自身の情報を人間に読みやすい文字列にして返します。 -
Rational
# inspect -> String (21125.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... -
Exception
# inspect -> String (21107.0) -
self のクラス名と message を文字列にして返します。
...self のクラス名と message を文字列にして返します。
//emlist[例][ruby]{
begin
raise "exception"
rescue
p $!.inspect # => "#<RuntimeError: exception>"
end
//}... -
OptionParser
:: ParseError # inspect -> String (21107.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...自身を人間が読みやすい形の文字列表現にして返します。
@return 文字列を返します。
@see Object#inspect... -
RubyVM
:: InstructionSequence # inspect -> String (21107.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 (21107.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 (21101.0) -
Encoding::Converter オブジェクトの情報を簡単に表示します。
...Encoding::Converter オブジェクトの情報を簡単に表示します。
@return 変換器の情報を簡単に可視化した文字列です。... -
IRB
:: Context # inspect -> String (21101.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。 -
IRB
:: Context # inspect _ mode=(opt) (9131.0) -
実行結果の出力方式を opt に設定します。
...false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp, :pretty_inspect
出力結果を pretty_inspect したものを表示します。
: :yaml, :YAML
出力結果を YAML 形式にした......ものを表示します。
: :marshal, :Marshal, :MARSHAL, Marshal
出力結果を Marshal.#dump したものを表示します。
@see lib:irb#inspect_mode...