Sha256: cc1274ffb200027ca9be4bf8a71d04467e10b53638844d985960b24b4e803531
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
module SearchBuilder def self.included(base) base.extend ClassMethods end module ClassMethods def finder name, options={} searches[name.to_s] ||= Search.new name, self, options end def find_search name searches[name.to_s] end def searches @searches ||= {} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redisant-0.1.3 | lib/redisant/search_builder.rb |
redisant-0.1.2 | lib/redisant/search_builder.rb |
redisant-0.1.1 | lib/redisant/search_builder.rb |