Class: Ush::App

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

Overview

The sinatra app that runs ush

Instance Method Summary collapse

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