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.
51 52 53 54 55 |
# File 'lib/ush/app.rb', line 51 def simple_escape(s) s = s.to_s s.gsub! /<|>/, '' s end |