Module: Gitlab::Triage::Utils

Defined in:
lib/gitlab/triage/utils.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.graphql_quote(string) ⇒ Object



8
9
10
11
12
# File 'lib/gitlab/triage/utils.rb', line 8

def graphql_quote(string)
  contents = string.to_s.gsub('"', '\\"')

  %("#{contents}")
end

Instance Method Details

#graphql_quote(string) ⇒ Object (private)



8
9
10
11
12
# File 'lib/gitlab/triage/utils.rb', line 8

def graphql_quote(string)
  contents = string.to_s.gsub('"', '\\"')

  %("#{contents}")
end