672件ヒット
[201-300件を表示]
(0.313秒)
ライブラリ
- ビルトイン (672)
クラス
-
ARGF
. class (24) - Array (24)
- Bignum (6)
- 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)
- Integer (24)
- MatchData (12)
- Method (24)
- Module (51)
- Object (24)
- Proc (24)
-
Process
:: Status (12) - Range (24)
- Rational (24)
- Regexp (24)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (12) - Set (6)
- String (24)
- Struct (24)
- Symbol (12)
- Thread (42)
-
Thread
:: Backtrace :: Location (12) - Time (6)
- TracePoint (12)
- TrueClass (12)
- UnboundMethod (36)
キーワード
- % (12)
- [] (12)
-
bind
_ call (12) -
const
_ added (3) -
const
_ missing (12) -
default
_ proc (12) -
initialize
_ copy (12) - name (12)
- name= (10)
-
to
_ s (188)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # inspect -> String (26108.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
Set
# inspect -> String (26108.0) -
人間の読みやすい形に表現した文字列を返します。
...人間の読みやすい形に表現した文字列を返します。
//emlist[][ruby]{
puts Set.new(['element1', 'element2']).inspect
# => #<Set: {"element1", "element2"}>
//}... -
Struct
# inspect -> String (26108.0) -
self の内容を人間に読みやすい文字列にして返します。
...クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}... -
Symbol
# inspect -> String (26108.0) -
自身を人間に読みやすい文字列にして返します。
...自身を人間に読みやすい文字列にして返します。
:fred.inspect #=> ":fred"... -
Thread
:: Backtrace :: Location # inspect -> String (26108.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
...][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>'"
//}... -
TracePoint
# inspect -> String (26108.0) -
self の状態を人間に読みやすい文字列にして返します。
...self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}... -
TrueClass
# inspect -> String (26108.0) -
常に文字列 "true" を返します。
...常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//}... -
ARGF
. class # inspect -> String (26102.0) -
常に文字列 "ARGF" を返します。
常に文字列 "ARGF" を返します。 -
Bignum
# inspect(base = 10) -> String (26102.0) -
self を引数で指定した基数の文字列表現に変換します。
self を引数で指定した基数の文字列表現に変換します。
@param base 基数を 2 から 36 の整数で指定します。
12345654321.to_s #=> "12345654321"
12345654321.to_s(2) #=> "1011011111110110111011110000110001"
12345654321.to_s(8) #=> "133766736061"
12345654321.to_s(16) #=> "2dfdbbc31"
78546939656932.to_s(36) ... -
Encoding
:: Converter # inspect -> String (26102.0) -
Encoding::Converter オブジェクトの情報を簡単に表示します。
Encoding::Converter オブジェクトの情報を簡単に表示します。
@return 変換器の情報を簡単に可視化した文字列です。 -
Enumerator
:: ArithmeticSequence # inspect -> String (26102.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。