Sha256: abb5f413dca7912917a69cd6a185a19fb4ab97875c519716a410d6d91730d863

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

<% begin %>

  <% input = StringIO.new(script) %>
  <% output = StringIO.new %>
  <% binding = Object.new.send :binding %>

  <% begin %>
    <% Pry.start binding, input: input, output: output %>
    <%= h output.string %>
  <% rescue => error %>
    <p class="text-danger"><%= h error.class %>: <%= h error.message %></p>
    <% error.backtrace.each do |backtrace| %>
      <p class="text-danger">    <%= h backtrace %></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.5.1 app/views/script/ruby.erb
tailog-0.5.0 app/views/script/ruby.erb