title: how to add text for first and last of index in ruby
body: <p>add text for first and last of index in ruby
  here is my Array</p>
  
  <pre><code> array ["name", "we", "Go", "live"]
  </code></pre>
  
  <p>result</p>
  
  <pre><code> :name, :we, :Go, :live
  </code></pre>