#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

#21. Rails scope

#7. Setting environment variables for rails app in ubuntu