Sha256: 49d2404358b1dac9209d62dd7153348c70442d3e2cf71982c46481a7fc7cf181
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
# The Picky application wherein the indexing and querying is defined. # class Application class << self # An application simply delegates to the routing to handle a request. # def call env routing.call env end # Freezes the routes. # def finalize routing.freeze end def routing @routing ||= Routing.new end # Routes. # delegate :route, :root, :to => :routing # # def indexing @indexing ||= Configuration::Indexes.new end def index *args self.type *args end delegate :type, :field, :to => :indexing # # def querying @queries ||= Configuration::Queries.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
picky-0.2.1 | lib/picky/application.rb |
picky-0.2.0 | lib/picky/application.rb |
picky-0.1.0 | lib/picky/application.rb |