Class: Bridgetown::Configuration::SourceManifest
- Inherits:
-
Struct
- Object
- Struct
- Bridgetown::Configuration::SourceManifest
- Defined in:
- bridgetown-core/lib/bridgetown-core/configuration.rb
Instance Attribute Summary collapse
-
#bare_text ⇒ Object
Returns the value of attribute bare_text.
-
#components ⇒ Object
Returns the value of attribute components.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#layouts ⇒ Object
Returns the value of attribute layouts.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#content ⇒ Object
-
#initialize(**kwargs) ⇒ SourceManifest
constructor
A new instance of SourceManifest.
Constructor Details
#initialize(**kwargs) ⇒ SourceManifest
Returns a new instance of SourceManifest.
20 21 22 23 24 25 26 27 28 29 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 20 def initialize(**kwargs) # for backwards compatibility, we need to support plugin code which sets `content` # directly, rather than uses the new multi-collections `contents` hash if kwargs[:content] kwargs[:contents] = { pages: kwargs[:content] } kwargs.delete :content end super end |
Instance Attribute Details
#bare_text ⇒ Object
Returns the value of attribute bare_text
17 18 19 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 17 def @bare_text end |
#components ⇒ Object
Returns the value of attribute components
17 18 19 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 17 def components @components end |
#contents ⇒ Object
Returns the value of attribute contents
17 18 19 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 17 def contents @contents end |
#layouts ⇒ Object
Returns the value of attribute layouts
17 18 19 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 17 def layouts @layouts end |
#origin ⇒ Object
Returns the value of attribute origin
17 18 19 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 17 def origin @origin end |
Instance Method Details
#content ⇒ Object
31 32 33 34 35 36 37 |
# File 'bridgetown-core/lib/bridgetown-core/configuration.rb', line 31 def content Bridgetown::Deprecator.( "source_manifest.content is deprecated, use " \ "source_manifest.contents instead" ) contents.values.first end |