Class: Confinement::Config::Source
- Inherits:
-
Object
- Object
- Confinement::Config::Source
- Defined in:
- lib/confinement.rb
Instance Attribute Summary collapse
-
#assets ⇒ Object
Returns the value of attribute assets.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#layouts ⇒ Object
Returns the value of attribute layouts.
Instance Method Summary collapse
- #assets_path ⇒ Object
- #contents_path ⇒ Object
-
#initialize(root:) {|_self| ... } ⇒ Source
constructor
A new instance of Source.
- #layouts_path ⇒ Object
Constructor Details
Instance Attribute Details
#assets ⇒ Object
Returns the value of attribute assets.
212 213 214 |
# File 'lib/confinement.rb', line 212 def assets @assets end |
#contents ⇒ Object
Returns the value of attribute contents.
213 214 215 |
# File 'lib/confinement.rb', line 213 def contents @contents end |
#layouts ⇒ Object
Returns the value of attribute layouts.
214 215 216 |
# File 'lib/confinement.rb', line 214 def layouts @layouts end |
Instance Method Details
#assets_path ⇒ Object
216 217 218 |
# File 'lib/confinement.rb', line 216 def assets_path @root.concat(assets).cleanpath. end |
#contents_path ⇒ Object
220 221 222 |
# File 'lib/confinement.rb', line 220 def contents_path @root.concat(contents).cleanpath. end |
#layouts_path ⇒ Object
224 225 226 |
# File 'lib/confinement.rb', line 224 def layouts_path @root.concat(layouts).cleanpath. end |