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
-
.config ⇒ Object
Returns the value of attribute config.
- .env ⇒ Object
-
.site ⇒ Object
Returns the value of attribute site.
Method Summary
Methods included from BuilderGetterInitialization
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
107 108 109 |
# File 'lib/confinement.rb', line 107 def config @config end |
.env ⇒ Object
111 112 113 |
# File 'lib/confinement.rb', line 111 def env @env ||= ENV.fetch("CONFINEMENT_ENV", "development") end |
.site ⇒ Object
Returns the value of attribute site.
108 109 110 |
# File 'lib/confinement.rb', line 108 def site @site end |