lib/lookbook.rb in lookbook-0.6.1 vs lib/lookbook.rb in lookbook-0.7.0

- old
+ new

@@ -3,18 +3,35 @@ require "lookbook/version" module Lookbook extend ActiveSupport::Autoload + autoload :Utils, "lookbook/utils" autoload :Lang, "lookbook/lang" autoload :Params, "lookbook/params" + autoload :Page, "lookbook/page" + autoload :PageCollection, "lookbook/page_collection" autoload :Features, "lookbook/features" autoload :Collection, "lookbook/collection" autoload :Parser, "lookbook/parser" autoload :Preview, "lookbook/preview" + autoload :PreviewCollection, "lookbook/preview_collection" autoload :PreviewController, "lookbook/preview_controller" autoload :PreviewExample, "lookbook/preview_example" autoload :PreviewGroup, "lookbook/preview_group" - autoload :Taggable, "lookbook/taggable" + autoload :CodeInspector, "lookbook/code_inspector" autoload :NullLogger, "lookbook/null_logger" autoload :CodeFormatter, "lookbook/code_formatter" + autoload :Markdown, "lookbook/markdown" + + class << self + include Utils + + def previews + Preview.all + end + + def pages + Page.all + end + end end