Ruby - Strings - Introduction

  • + 0 comments
    def single_quote 
      'Hello World and others!'
    end
    
    def double_quote
      "Hello World and others!"
    end
    
    def here_doc 
      document = <<-HERE   
      Hello World and others!
      HERE
    end