Returns a true
boolean if the Float
returns 0. Otherwise, it returns false
.
0.0.zero? #=> true
This method is called on a Ruby date
object and it returns the date one year in the future.
Date.new(2014, 8, 9).next_year #=> #<Date: 2015-08-09 ...>
This method can be called on any Ruby Object
and returns a boolean if that object is nil
or not.
"string".nil? #=> false
Returns a new array populated with the given objects.
Array.[]( 1, 'a', /^A/) # => [1, "a", /^A/]