721件ヒット
[701-721件を表示]
(0.088秒)
クラス
-
ARGF
. class (75) - Array (48)
- BasicObject (24)
- Binding (12)
- Exception (24)
- IO (84)
- LoadError (12)
- Module (132)
- Object (132)
- String (60)
- SystemExit (12)
- Thread (72)
- TracePoint (12)
- UncaughtThrowError (22)
キーワード
- % (12)
-
add
_ trace _ func (12) - ancestors (12)
- autoload (12)
- class (12)
-
class
_ eval (24) -
const
_ defined? (12) - constants (12)
-
defined
_ class (12) - eval (12)
- exit (12)
- freeze (12)
- gets (27)
- hex (12)
- include (12)
- inspect (12)
-
instance
_ eval (24) -
instance
_ variables (12) - kill (12)
- method (12)
-
module
_ eval (24) - oct (12)
- path (12)
- print (24)
- printf (24)
-
public
_ instance _ method (12) - putc (24)
- puts (24)
- raise (12)
-
remove
_ const (12) - reopen (36)
- sample (48)
- send (24)
-
set
_ trace _ func (12) - status (12)
- tag (11)
- terminate (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ f (12) -
to
_ i (12) -
to
_ int (12) -
to
_ str (12) - value (11)
検索結果
-
Object
# to _ int -> Integer (15.0) -
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...が使われるすべての場面で代置可能であるような、
* 整数そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_int
1
end
end
ary = [:a, :b, :c]
p(ary[Foo.new]) # => :b
//}
@see Kernel.#Integer... -
Object
# to _ str -> String (15.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new
p('Second' + it) #=> "SecondEdition"
//}
@see Object#to_s,Kernel.#String...