lib/picky/application.rb in picky-0.9.3 vs lib/picky/application.rb in picky-0.9.4
- old
+ new
@@ -1,10 +1,12 @@
# The Picky application wherein the indexing and querying is defined.
#
class Application
class << self
+ attr_reader :apps
+
# Finalize the subclass as soon as it
# has finished loading.
#
# Note: finalize finalizes the routes.
#
@@ -46,9 +48,15 @@
# TODO Rename to default_querying?
#
def querying
@queries ||= Configuration::Queries.new
+ end
+
+ # TODO Add more info.
+ #
+ def to_s
+ "#{self.name}:\n#{routing}"
end
end
end
\ No newline at end of file