F1e3ab214a976a39cfd713bc93deb10f

Just plain-jane ERB. What does rails do differently to allow <% -%> and <%= -%> ? to get below to actually format correctly I have to place the erb tags in a gross manor.. initializing ERB with <> or >

NAME:
  
    <%= @name %>
  
  DESCRIPTION:
  
    <%= @description %>
  
  SYNOPSIS:
  
    <%= @syntax %>

<% unless @examples.empty? %>
  EXAMPLES:
  <% @examples.each do |example| %>  
    # <%= example[:description] %>
    <%= example[:command] %>
  <% end %>
<% end %> 

<% unless @options.empty? %>
  OPTIONS:
  <% @options.each do |option| %>
    <%= option[:args].join(', ') %>
  <% end %>
<% end %>

Refactorings

No refactoring yet !

Your refactoring





Format Copy from initial code

or Cancel