J
Josselin
I would like to compact join address elements by inserting a new line
between them
in my class address I am using
def to_s
[@street, @city, @country ].compact.join(" - ")
end
but I'd like to replace " -" by a new line character to display the
full adress on 3 lines
is it possible ?
joss
between them
in my class address I am using
def to_s
[@street, @city, @country ].compact.join(" - ")
end
but I'd like to replace " -" by a new line character to display the
full adress on 3 lines
is it possible ?
joss