633件ヒット
[1-100件を表示]
(0.103秒)
ライブラリ
- ビルトイン (342)
- bigdecimal (11)
- csv (11)
-
irb
/ context (22) -
irb
/ ext / math-mode (8) -
irb
/ inspector (33) - openssl (33)
- shell (6)
-
shell
/ filter (6) - socket (11)
- thwait (18)
- win32ole (22)
- zlib (11)
クラス
-
ARGF
. class (22) - Addrinfo (11)
- BigDecimal (11)
-
CSV
:: Table (11) - Complex (11)
- FalseClass (22)
- Float (22)
- Hash (11)
-
IRB
:: Context (30) -
IRB
:: Inspector (22) - Module (46)
- Object (11)
-
OpenSSL
:: HMAC (33) - Rational (22)
- Shell (6)
-
Shell
:: Filter (6) - Symbol (11)
- Thread (11)
-
Thread
:: Backtrace :: Location (11) - ThreadsWait (18)
- TrueClass (11)
- UnboundMethod (10)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ TYPE (11) -
Zlib
:: GzipFile :: Error (11)
キーワード
- Inspector (11)
- [] (11)
- ` (11)
- abort (22)
-
all
_ waits (18) -
bind
_ call (10) -
const
_ added (2) -
const
_ missing (11) - debug= (6)
-
def
_ inspector (11) -
default
_ proc (11) - exit (11)
- format (11)
- handler= (11)
- hexdigest (11)
-
initialize
_ copy (11) - inspect? (11)
-
inspect
_ i (11) -
inspect
_ mode (11) -
inspect
_ obj (11) -
inspect
_ value (11) - irb (11)
-
irb
/ completion (11) - math? (4)
-
math
_ mode (4) -
method
_ inspect (11) - name (11)
- new (11)
- p (11)
-
rb
_ inspect (11) -
rb
_ obj _ inspect (11) -
rb
_ thread _ inspect (11) -
ruby 1
. 8 . 2 feature (11) - sprintf (11)
-
to
_ s (66) -
trace
_ var (33) -
untrace
_ var (11)
検索結果
先頭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... -
ARGF
. class # inspect -> String (21101.0) -
常に文字列 "ARGF" を返します。
常に文字列 "ARGF" を返します。