Sha256: 41e9f104e3952a3baa8b538929b4ccd8ff915debc925ea136c7de8826436e2b4
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
module Picky # This Module is used to install delegator methods # into the class for use with Sinatra. # module Sinatra # Privatizes app file methods. # def self.extended into private :indexing, :searching end # Sets tokenizer default indexing options. # def indexing options = {} Tokenizer.default_indexing_with options end # Sets tokenizer default searching options. # def searching options = {} Tokenizer.default_searching_with options end end end # Check if toplevel Sinatra picky methods need to be installed. # if private_methods.include? :get extend Picky::Sinatra # Enable index actions. # require_relative 'sinatra/index_actions' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-4.0.8 | lib/picky/sinatra.rb |
picky-4.0.7 | lib/picky/sinatra.rb |