Sha256: a0d986488f030db6d6e296fb41a9b47c247ae9188a5cfbc3c16986c6f268f9e9

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

<% begin %>
  <% output = IRB.evaluate_string script %>
  <% output.each do |key, line| %>
    <% case key
       when :stdin %>
      <p class="text-info"><%= h line %></p>
    <% when :stdout %>
      <p><%= h line %></p>
    <% when :stderr %>
      <p class="text-danger"><%= h line %></p>
    <% end %>
  <% end %>
<% rescue => error %>
  <%= erb :error, locals: { error: error }, layout: false %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tailog-0.7.0 app/views/script/ruby.erb
tailog-0.6.9 app/views/script/ruby.erb