How To Use Heredoc in Ruby
29-Nov-2018 2250
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 #Heredoc https://rubyonrails.ba/link/how-to-use-heredoc-in-ruby