class Birds
Constants
- DEFAULT_CONFIG
- VERSION
Attributes
app[RW]
Public Class Methods
app(path)
click to toggle source
# File lib/birds.rb 37 def app(path) 38 app_class(path).new! 39 end
new(path = DEFAULT_CONFIG)
click to toggle source
# File lib/birds.rb 53 def initialize(path = DEFAULT_CONFIG) 54 self.app = self.class.app(File.expand_path(path)) 55 end
rack_app()
click to toggle source
# File lib/birds.rb 41 def rack_app 42 new(__FILE__.sub(/\.rb\z/, '/rack_app')) 43 end
Private Class Methods
app_class(path)
click to toggle source
# File lib/birds.rb 47 def app_class(path) 48 (@app_class ||= {})[path] ||= Rack::Builder.parse_file(path).first 49 end
Public Instance Methods
count()
click to toggle source
# File lib/birds.rb 61 def count 62 solr.count.to_i 63 end