Module: Scribo

Defined in:
lib/scribo/i18n_store.rb,
lib/scribo.rb,
lib/scribo/engine.rb,
lib/scribo/utility.rb,
lib/scribo/version.rb,
lib/scribo/preamble.rb,
app/models/scribo/site.rb,
lib/scribo/configuration.rb,
lib/scribo/liquid/parser.rb,
app/models/scribo/content.rb,
lib/scribo/sassc/importer.rb,
app/drops/scribo/data_drop.rb,
app/drops/scribo/form_drop.rb,
app/drops/scribo/site_drop.rb,
app/drops/scribo/array_drop.rb,
app/drops/scribo/content_drop.rb,
app/drops/scribo/include_drop.rb,
app/drops/scribo/paginator_drop.rb,
app/jobs/scribo/application_job.rb,
app/drops/scribo/application_drop.rb,
app/models/scribo/application_record.rb,
lib/scribo/action_controller_helpers.rb,
app/helpers/scribo/application_helper.rb,
app/services/scribo/site_find_service.rb,
app/services/scribo/application_service.rb,
app/services/scribo/site_export_service.rb,
app/services/scribo/site_import_service.rb,
app/services/scribo/content_find_service.rb,
app/drops/scribo/active_model/errors_drop.rb,
app/controllers/scribo/contents_controller.rb,
app/services/scribo/content_render_service.rb,
app/controllers/scribo/api/sites_controller.rb,
app/controllers/scribo/admin/sites_controller.rb,
app/controllers/scribo/application_controller.rb,
app/drops/scribo/action_dispatch/request_drop.rb,
app/controllers/scribo/application_admin_controller.rb,
app/controllers/scribo/admin/sites/contents_controller.rb

Overview

require ‘i18n/core_ext/hash’

Defined Under Namespace

Modules: ActionControllerHelpers, ActionDispatch, ActiveModel, Admin, Api, ApplicationHelper, SassC, Utility Classes: ApplicationAdminController, ApplicationController, ApplicationDrop, ApplicationJob, ApplicationRecord, ApplicationService, ArrayDrop, Configuration, Content, ContentDrop, ContentFindService, ContentRenderService, ContentsController, DataDrop, Engine, Error, FormDrop, I18nStore, IncludeDrop, LiquidParser, PaginatorDrop, Preamble, Site, SiteDrop, SiteExportService, SiteFindService, SiteImportService

Constant Summary collapse

VERSION =
'1.0.38'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



31
32
33
# File 'lib/scribo.rb', line 31

def config
  @config
end

Class Method Details

.i18n_storeObject



38
39
40
# File 'lib/scribo.rb', line 38

def i18n_store
  @i18n_store ||= Scribo::I18nStore.new
end

.loggerObject



42
43
44
# File 'lib/scribo.rb', line 42

def logger
  @config.logger
end

.setup {|config| ... } ⇒ Object

Yields:



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

def setup
  @config = Configuration.new
  yield config
end