407件ヒット
[401-407件を表示]
(0.018秒)
キーワード
- === (11)
-
_ dump (11) -
define
_ singleton _ method (22) - display (11)
- extend (11)
- initialize (11)
-
initialize
_ copy (11) - inspect (11)
-
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variables (11) -
is
_ a? (11) -
kind
_ of? (11) -
marshal
_ dump (11) -
marshal
_ load (11) - methods (11)
-
pretty
_ print (11) -
pretty
_ print _ cycle (11) -
public
_ method (11) -
remove
_ instance _ variable (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - send (22)
-
singleton
_ class (11) -
singleton
_ method (11) -
singleton
_ methods (11) -
to
_ ary (11) -
to
_ hash (11) -
to
_ int (11) -
to
_ proc (11) -
to
_ regexp (11) -
to
_ s (11) -
to
_ str (11)
検索結果
-
Object
# to _ str -> String (8.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new
p('Second' + it) #=> "SecondEdition"
//}
@see Object#to_s,Kernel.#String...