self.homePostalAddress = self.mozillaHomeStreet + "$" + self.mozillaHomeLocalityName + "$" + self.mozillaHomePostalCode + "$$" + self.mozillaHomeCountryName
I have this line of code and I’d like to split it into multiple rows as it’s becoming too long.
I tried other variants with #{} but was not able to achive the desired result.
You can try to do this using String#% format method:
(You don’t need to use
self.because these methods will be called on self implicitly).With string interpolation (
#{}) this code will look like this: