Class: Ush::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Ush::App
- Defined in:
- lib/ush/app.rb
Overview
The sinatra app that runs ush
Instance Method Summary collapse
-
#simple_escape(s) ⇒ Object
Strips nasty characters in the given string.
Instance Method Details
#simple_escape(s) ⇒ Object
Strips nasty characters in the given string. Used for parsing shortcodes.
47 48 49 50 51 |
# File 'lib/ush/app.rb', line 47 def simple_escape(s) s = s.to_s s.gsub! /<|>/, '' s end |