Sha256: a206f6089f077d133bef7e5f9c31e893703724c23aed608c75dd083680c66448

Contents?: true

Size: 436 Bytes

Versions: 24

Compression:

Stored size: 436 Bytes

Contents

module CloudSesame
	module Query
		module Node
			class Query < Abstract
				extend ClassSpecific

				attr_accessor :query

				def compile
					if query && !query.empty?
						compiled = "(#{ query })"

						[context[:fuzziness], context[:sloppiness]].each do |parser|
							if parser && (parsed = parser.compile(query))
								compiled << "|" << parsed
							end
						end

						compiled
					end
				end

			end
		end
	end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
CloudSesame-0.7.3 lib/cloud_sesame/query/node/query.rb
CloudSesame-0.7.2 lib/cloud_sesame/query/node/query.rb
CloudSesame-0.7.1 lib/cloud_sesame/query/node/query.rb
CloudSesame-0.7.0 lib/cloud_sesame/query/node/query.rb