Module: Riddle

Defined in:
lib/riddle.rb,
lib/riddle/client.rb,
lib/riddle/client/filter.rb,
lib/riddle/client/message.rb,
lib/riddle/client/response.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Version Classes: Client, ConnectionError, ResponseError, VersionError

Class Method Summary collapse

Class Method Details

.escape(string) ⇒ Object



25
26
27
# File 'lib/riddle.rb', line 25

def self.escape(string)
  string.gsub(/[\(\)\|\-!@~"&\/]/) { |char| "\\#{char}" }
end