るりまサーチ

最速Rubyリファレンスマニュアル検索!
235件ヒット [201-235件を表示] (0.110秒)

別のキーワード

  1. date second
  2. datetime second
  3. process clock_second
  4. date second_fraction
  5. _builtin clock_second

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 >>

Object#to_str -> String (7.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...

DateTime#sec -> Integer (2.0)

秒を返します (0-59)。

秒を返します (0-59)。

DateTime#sec_fraction -> Rational (2.0)

秒の小数点以下の部分を表す分数を返します。

秒の小数点以下の部分を表す分数を返します。
<< < 1 2 3 >>