Class: Guillotine::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/guillotine/app.rb

Overview

Essentially herds Sinatra input to Guillotine::Service, and ensures the output is fit Sinatra to return.

Instance Method Summary collapse

Instance Method Details

#simple_escape(s) ⇒ Object

Guillotine output is supposed to be text/plain friendly, so only strip /<|>/. Broken tie fighter :( If you’re passing these characters in, you’re probably doing something naughty.



35
36
37
38
39
# File 'lib/guillotine/app.rb', line 35

def simple_escape(s)
  s = s.to_s
  s.gsub! /<|>/, ''
  s
end