Class: Guillotine::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Guillotine::App
- 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
-
#simple_escape(s) ⇒ Object
Guillotine output is supposed to be text/plain friendly, so only strip /<|>/.
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.
28 29 30 31 32 |
# File 'lib/guillotine/app.rb', line 28 def simple_escape(s) s = s.to_s s.gsub! /<|>/, '' s end |