Module: Summon

Defined in:
lib/summon.rb,
lib/summon/cli.rb,
lib/summon/log.rb,
lib/summon/schema.rb,
lib/summon/service.rb,
lib/summon/version.rb,
lib/summon/benchmark.rb,
lib/summon/transport.rb,
lib/summon/transport/canned.rb

Defined Under Namespace

Modules: Transport Classes: Author, Availability, Benchmark, CLI, Citation, DatabaseRecommendation, Date, Document, Error, Facet, FacetCount, FacetValueFilter, FacetValueGroupFilter, FacetValueGroupFilterValue, LibGuideTab, Log, Query, Range, RangeCount, RangeFacet, RangeFilter, RecommendationList, Schema, Search, Service, Sort, Suggestion

Constant Summary collapse

VERSION =
"2.0.5"

Class Method Summary collapse

Class Method Details

.escape(value) ⇒ Object



23
24
25
# File 'lib/summon.rb', line 23

def self.escape(value)
  value.gsub(/(,|\(|\)|\{|\}|\$|\:)/, '\\\\\1').gsub("\\", '\\')
end

.unescape(value) ⇒ Object



27
28
29
# File 'lib/summon.rb', line 27

def self.unescape(value)
  value.gsub(/\\(.)/, '\1')
end