Format example as Ruby