This isn't rendering properly with Github Flavored Markdown, I'd suggest wrapping the entire bit in

\```ruby

\```