Module: Lookbook

Extended by:
ActiveSupport::Autoload, Utils
Defined in:
lib/lookbook.rb,
lib/lookbook/lang.rb,
lib/lookbook/page.rb,
lib/lookbook/error.rb,
lib/lookbook/utils.rb,
lib/lookbook/engine.rb,
lib/lookbook/params.rb,
lib/lookbook/parser.rb,
lib/lookbook/preview.rb,
lib/lookbook/version.rb,
lib/lookbook/features.rb,
lib/lookbook/markdown.rb,
lib/lookbook/collection.rb,
lib/lookbook/preview_group.rb,
lib/lookbook/code_formatter.rb,
lib/lookbook/code_inspector.rb,
lib/lookbook/page_collection.rb,
lib/lookbook/preview_example.rb,
lib/lookbook/preview_collection.rb,
lib/lookbook/preview_controller.rb,
app/channels/lookbook/connection.rb,
app/helpers/lookbook/page_helper.rb,
app/helpers/lookbook/output_helper.rb,
app/helpers/lookbook/preview_helper.rb,
app/channels/lookbook/reload_channel.rb,
app/helpers/lookbook/component_helper.rb,
app/helpers/lookbook/application_helper.rb,
app/controllers/lookbook/page_controller.rb,
app/controllers/lookbook/pages_controller.rb,
app/controllers/lookbook/previews_controller.rb,
app/controllers/lookbook/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, CodeFormatter, ComponentHelper, Features, Lang, OutputHelper, PageHelper, Params, PreviewController, PreviewHelper, Utils Classes: ApplicationController, CodeInspector, Collection, Connection, Engine, Error, Formatter, Markdown, Page, PageCollection, PageController, PagesController, Parser, Preview, PreviewCollection, PreviewExample, PreviewGroup, PreviewsController, ReloadChannel

Constant Summary collapse

VERSION =
"0.7.4"

Constants included from Utils

Utils::FRONTMATTER_REGEX, Utils::POSITION_PREFIX_REGEX

Class Method Summary collapse

Class Method Details

.configObject



8
9
10
# File 'lib/lookbook/engine.rb', line 8

def config
  @config ||= Engine.config.lookbook
end

.loggerObject



12
13
14
# File 'lib/lookbook/engine.rb', line 12

def logger
  @logger ||= Rails.logger
end

.pagesObject



33
34
35
# File 'lib/lookbook.rb', line 33

def pages
  Page.all
end

.previewsObject



29
30
31
# File 'lib/lookbook.rb', line 29

def previews
  Preview.all
end

.versionObject



16
17
18
# File 'lib/lookbook/engine.rb', line 16

def version
  Lookbook::VERSION
end