I've recently switched the Drifting Ruby comments over from Summernote to SimpleMDE which gives better familiarity to code editing WYSIWYG.
Using three backticks, followed by a language, you can create the code blocks
```ruby
def Foo
puts bar
end
```