class Birds
Constants
- DEFAULT_CONFIG
- VERSION
Attributes
app[RW]
Public Class Methods
app(path)
click to toggle source
# File lib/birds.rb, line 36 def app(path) app_class(path).new! end
new(path = DEFAULT_CONFIG)
click to toggle source
# File lib/birds.rb, line 52 def initialize(path = DEFAULT_CONFIG) self.app = self.class.app(File.expand_path(path)) end
rack_app()
click to toggle source
# File lib/birds.rb, line 40 def rack_app new(__FILE__.sub(/\.rb\z/, '/rack_app')) end
Private Class Methods
app_class(path)
click to toggle source
# File lib/birds.rb, line 46 def app_class(path) (@app_class ||= {})[path] ||= Rack::Builder.parse_file(path).first end
Public Instance Methods
count()
click to toggle source
# File lib/birds.rb, line 60 def count solr.count.to_i end