module Kernel

def console(binding = Bindex.current_bindings.second)

request is detected.
Raises +DoubleRenderError+ if a more than one +console+ invocation per

previous frame. E.g. the one that invoked +console+.
If +binding+ isn't explicitly given it will default to the binding of the

Instructs Web Console to render a console in the specified binding.
def console(binding = Bindex.current_bindings.second)
  raise WebConsole::DoubleRenderError if Thread.current[:__web_console_binding]
  Thread.current[:__web_console_binding] = binding
  # Make sure nothing is rendered from the view helper. Otherwise
  # you're gonna see unexpected #<Binding:0x007fee4302b078> in the
  # templates.
  nil
end