This comment is hidden because it contains spoiler information about the solution
No example test in ruby
Ruby translation isn't really correct. I mean it breaks some ruby best practices. For example, the method is_worth_it should be changed to worth_it? since this mehtod return a boolean value.
is_worth_it
worth_it?
You shouldn't use parentheses without a purpose
I'd recommend using initializer instead of global variables. You should avoid using global variables.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
No example test in ruby
Ruby translation isn't really correct. I mean it breaks some ruby best practices.
For example, the method
is_worth_it
should be changed toworth_it?
since this mehtod return a boolean value.You shouldn't use parentheses without a purpose
I'd recommend using initializer instead of global variables.
You should avoid using global variables.