#10. positive? method

 3.0.4 :001 > 0.positive?

 => false 

3.0.4 :002 > 1.positive?

 => true 

3.0.4 :003 > -1.positive?

 => false



Comments

Popular posts from this blog

#6. Fetch time in rails

#8. nginx+puma deployment using capistrano

#21. Rails scope