title: Calculating Median in Ruby
body: <p>How do I calculate the median of an array of numbers using Ruby?</p>
  <p>I am a beginner and am struggling with handling the cases of the array being of odd and even length.</p>