最速Rubyリファレンスマニュアル検索!
すべて(8)
2.4.0(1)
2.5.0(1)
2.6.0(1)
2.7.0(1)
3.0(1)
3.1(1)
3.2(1)
3.3(1)
8件ヒット
[1-8件を表示]
(0.032秒)
トップページ
>
:
IO
>
:positive?
別のキーワード
io popen
io pipe
io readlines
io each_line
io each
ライブラリ
ビルトイン
(8)
クラス
Rational
(8)
検索結果
先頭1件
Rational
#
positive? -> bool
Rational
#
positive? -> bool
(21113.0)
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.1
3.2
3.3
インスタンスメソッド
self が 0 より大きい場合に true を返します。そうでない場合に false を返します。
...
self が 0 より大きい場合に true を返します。そうでない場合に false を返します。
//emlist[例][ruby]{
Rat
io
nal(1, 2).
positive?
# => true
Rat
io
nal(-1, 2).
positive?
# => false
//}
@see Rat
io
nal#negative?
...
Rational