General

Profile

prodis (Fernando Hamasaki de Amorim)

  • Login: prodis
  • Email: prodis@gmail.com
  • Registered on: 12/19/2015
  • Last sign in: 10/27/2016

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

10/27/2016

11:17 PM Ruby Feature #12012: Add Boolean method
You can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool prodis (Fernando Hamasaki de Amorim)
11:14 PM Ruby Feature #11848: New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
Andrew Vit wrote:
> I've had to do this in a few places over the years myself:
> ...
Andrew Vit, you can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool
prodis (Fernando Hamasaki de Amorim)

12/20/2015

02:18 PM Ruby Feature #11848: New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
The idea of ***to_b*** method is inspired in Rails and Swift:
* ActiveRecord::Type:Boolean in Rails:
https://github.com/rails/rails/blob/fc4084fc5bdf60c46824094f4d6a362304c047f6/activerecord/lib/active_record/type/boolean.rb#L10
htt...
prodis (Fernando Hamasaki de Amorim)

12/19/2015

05:06 PM Ruby Feature #11848 (Rejected): New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
New ***to_b*** method converts **strings**, **symbols**, **numbers** and **nil** values in a **boolean** value.
***to_b*** method is available on ***String***, ***Symbol***, ***Numeric***, ***TrueClass***, ***FalseClass*** and ***NilC...
prodis (Fernando Hamasaki de Amorim)

Also available in: Atom