< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
You can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool
----------------------------------------
Feature #12012: Add Boolean method
https://bugs.ruby-lang.org/issues/12012#change-61094
* Author: Andrey Koleshko
* Status: Rejected
* Priority: Normal
* Assignee:
----------------------------------------
In Ruby we have methods with a capital letter which are used for implicit type casting. For example: `Array`, `String`, `Integer` and etc. But there is lack of one desired function that I recently define in all my projects - this is `Boolean`. I mean it would be great to have in Ruby the built-in function:
~~~
Boolean(nil) # => false
Boolean("") # => true - I'm not sure about this. It's more convenient to have false here
Boolean("false") # => true
Boolean("0") # => false
Boolean("1") # => false
Boolean("test") # => true
~~~
What do you think, guys, about this suggestion?
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>