Sha256: 515883212897b475a0913418d0d34ac4a16097155c471010900e210aa07828e0

Contents?: true

Size: 959 Bytes

Versions: 1

Compression:

Stored size: 959 Bytes

Contents

<div id="method">
  
  <%
    splitted = @method
    str = @method
    str = "<span id='http_verb'>#{str}</span>"
  %>
  <p class='description'><strong>Description:</strong> <%=@content %></p>

  <h2><%=str %><%=@url %></h2>
  
  <% if @access %>
    <strong>Access:</strong> <%=@access %><br />
  <% end %>

  <% if @return %>
    <strong>Return:</strong>
    <%=@return %>
    <br />
  <% end %>

  <% if @variables %>  
    <strong>Parameters:</strong>
    <ul>
      <% @variables.each do |v| %><li><%=v %></li><% end %>
    </ul>
  <% end %>

  <% if @output %>
      <strong>Output:</strong>
      <div class="code">
        <%= @output %>
      </div>
      <br />
  <% end %>

  <% unless @request.blank? %>
    <strong>Request:</strong>
    <pre class="code"><code><%= @request %></code></pre>
  <% end %>

  <% unless @response.blank? %>  
    <strong>Response:</strong>
    <pre class="code"><code><%= @response %></code></pre>
  <% end %>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapi_doc-0.1.2 templates/_resource_method.html.erb