Sha256: 380eef83b97ebe712c4d42f11a443b88812cd039880274aebdc641e71e31aad0
Contents?: true
Size: 388 Bytes
Versions: 28
Compression:
Stored size: 388 Bytes
Contents
module CloudSesame module Query module Node class Sloppiness def initialize(value) @value = value.to_i end def compile(string) "\"#{ string }\"~#{ @value }" if more_than_one_word?(string) end private def more_than_one_word?(string) string.include?(' ') end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems