Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/liquid/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#clean_quoteObject



4
5
6
7
8
9
10
# File 'lib/liquid/ext/string.rb', line 4

def clean_quote
  if index(/["\s]/)
    %{"#{tr('"', "'")}"}
  else
    self
  end
end