Module: Confinement

Extended by:
BuilderGetterInitialization
Defined in:
lib/confinement.rb,
lib/confinement/version.rb

Defined Under Namespace

Modules: Blob, BuilderGetterInitialization, Easier, RenderableBlob, RouteableBlob Classes: Asset, Blobs, Compiler, Config, Content, Error, Layout, Renderer, Rendering, RouteIdentifiers, Site

Constant Summary collapse

FRONTMATTER_REGEX =
/\A
  (?<possible_frontmatter_section>
    (?<frontmatter>^---\n
    .*?)
    ^---\n)?
  (?<body>.*)
\z/mx
PATH_INCLUDE_PATH_REGEX =
/\A\.\.(\z|\/)/
VERSION =
"0.0.3"

Class Attribute Summary collapse

Method Summary

Methods included from BuilderGetterInitialization

builder_getter

Class Attribute Details

.configObject

Returns the value of attribute config.



107
108
109
# File 'lib/confinement.rb', line 107

def config
  @config
end

.envObject



111
112
113
# File 'lib/confinement.rb', line 111

def env
  @env ||= ENV.fetch("CONFINEMENT_ENV", "development")
end

.siteObject

Returns the value of attribute site.



108
109
110
# File 'lib/confinement.rb', line 108

def site
  @site
end