698件ヒット
[1-100件を表示]
(0.089秒)
ライブラリ
- ビルトイン (384)
- bigdecimal (12)
- csv (12)
-
irb
/ context (24) -
irb
/ ext / math-mode (8) -
irb
/ inspector (36) - openssl (36)
- shell (6)
-
shell
/ filter (6) - socket (12)
- thwait (18)
- win32ole (24)
- zlib (12)
クラス
-
ARGF
. class (24) - Addrinfo (12)
- BigDecimal (12)
-
CSV
:: Table (12) - Complex (12)
- FalseClass (24)
- Float (24)
- Hash (12)
-
IRB
:: Context (32) -
IRB
:: Inspector (24) - Module (51)
- Object (12)
-
OpenSSL
:: HMAC (36) - Rational (24)
- Shell (6)
-
Shell
:: Filter (6) - Symbol (12)
- Thread (12)
-
Thread
:: Backtrace :: Location (12) - ThreadsWait (18)
- Time (9)
- TrueClass (12)
- UnboundMethod (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipFile :: Error (12)
キーワード
- Inspector (12)
- [] (12)
- ` (12)
- abort (24)
-
all
_ waits (18) -
bind
_ call (12) -
const
_ added (3) -
const
_ missing (12) - debug= (6)
-
def
_ inspector (12) -
default
_ proc (12) - exit (12)
- format (12)
- handler= (12)
- hexdigest (12)
-
initialize
_ copy (12) - inspect? (12)
-
inspect
_ i (12) -
inspect
_ mode (12) -
inspect
_ obj (12) -
inspect
_ value (12) - irb (12)
-
irb
/ completion (12) - math? (4)
-
math
_ mode (4) -
method
_ inspect (12) - name (12)
- new (21)
- p (12)
-
rb
_ inspect (12) -
rb
_ obj _ inspect (12) -
rb
_ thread _ inspect (12) -
ruby 1
. 8 . 2 feature (12) - sprintf (12)
-
to
_ s (72) -
trace
_ var (36) -
untrace
_ var (12)
検索結果
先頭5件
-
Complex
# inspect -> String (21131.0) -
自身を人間が読みやすい形の文字列表現にして返します。
.../emlist[例][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 #... -
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... -
BigDecimal
# inspect -> String (21107.0) -
BigDecimal オブジェクトを表す文字列を返します。
...BigDecimal オブジェクトを表す文字列を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1234.5678").inspect
# => "0.12345678e4"
//}... -
CSV
:: Table # inspect -> String (21107.0) -
モードとサイズを US-ASCII な文字列で返します。
...モードとサイズを US-ASCII な文字列で返します。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.inspect # => "#<CSV::Table mode:col_or_row row_count:2>"
//}... -
Shell
:: Filter # inspect -> String (21107.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect... -
Symbol
# inspect -> String (21107.0) -
自身を人間に読みやすい文字列にして返します。
...自身を人間に読みやすい文字列にして返します。
:fred.inspect #=> ":fred"... -
Thread
:: Backtrace :: Location # inspect -> String (21107.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
...: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>'"
//}... -
TrueClass
# inspect -> String (21107.0) -
常に文字列 "true" を返します。
...常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//}... -
WIN32OLE
_ TYPE # inspect -> String (21107.0) -
selfを説明的な文字列で表現します。
...selfを説明的な文字列で表現します。
@return "#<WIN32OLE_TYPE"とWIN32OLE_TYPE#to_sの結果を「:」で結合
し、「>」で閉じた文字列を返します。
x = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts x.inspect #=> #<WIN32OLE_TY......PE:Worksheet>
@see WIN32OLE_TYPE#to_s...