M
me
The Poignant Guide to Ruby gives this example:
email = if at_hotel
address = "why"
address << "@hotelambrose"
address << ".com"
end
which equates to
address.<<( ".com" )
However, "com".length cannot be written as "com" length.
How can I tell what methods require the dot prefix, and which methods
do not?
Thanks very much,
Mike.
email = if at_hotel
address = "why"
address << "@hotelambrose"
address << ".com"
end
which equates to
address.<<( ".com" )
However, "com".length cannot be written as "com" length.
How can I tell what methods require the dot prefix, and which methods
do not?
Thanks very much,
Mike.