How To Use Heredoc in Ruby

You use this syntax to define a heredoc in Ruby.You start with the symbol <<-, then a word that represents the name for this heredoc, then the heredoc contents, then you close the heredoc with that some word on its own line.
How To Use Heredoc in Ruby #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/how-to-use-heredoc-in-ruby

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles