Module: FormattingHelper

Defined in:
app/helpers/formatting_helper.rb

Instance Method Summary collapse

Instance Method Details

#remove_surrounding_quotes(string) ⇒ Object

Remove surrounding quotes from string



3
4
5
# File 'app/helpers/formatting_helper.rb', line 3

def remove_surrounding_quotes(string)
  string.gsub!(/^\"|"\Z/, '') unless string.blank?
end