最速Rubyリファレンスマニュアル検索!
すべて(103)
2.1.0(5)
2.2.0(5)
2.3.0(7)
2.4.0(8)
2.5.0(8)
2.6.0(10)
2.7.0(10)
3.0(10)
3.1(10)
3.2(10)
3.3(10)
3.4(10)
103件ヒット
[101-103件を表示]
(0.060秒)
トップページ
>
:
Ruby
>
:
ruby
>
:
インスタンスメソッド
>
:
self
>
:
b
>
クラス:Numeric
別のキーワード
fiddle ruby_free
rbconfig ruby
fiddle build_ruby_platform
rake ruby
rubygems/defaults ruby_engine
ライブラリ
ビルトイン
(103)
キーワード
finite?
(9)
negative?
(10)
nonzero?
(12)
positive?
(10)
step
(62)
検索結果
先頭1件
Numeric
#
positive? -> bool
<<
<
1
2
>>
Numeric
#
positive? -> bool
(130.0)
2.7.0
3.0
3.1
インスタンスメソッド
self が 0 より大きい場合に true を返します。そうでない場合に false を返します。
...
self
が 0 より大きい場合に true を返します。そうでない場合に false を返します。
//emlist[例][
ruby
]{
1.positive? # => true
0.positive? # => false
-1.positive? # => false
//}
@see
Numeric
#negative?
...
<<
<
1
2
>>