Class: Jekyll::Gensocial::ImageCreator::BackgroundLayerConfig
- Inherits:
-
Object
- Object
- Jekyll::Gensocial::ImageCreator::BackgroundLayerConfig
- Defined in:
- lib/jekyll-gensocial/image_creator/background_layer_config.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(hash, base_path:) ⇒ BackgroundLayerConfig
constructor
A new instance of BackgroundLayerConfig.
Constructor Details
#initialize(hash, base_path:) ⇒ BackgroundLayerConfig
Returns a new instance of BackgroundLayerConfig.
9 10 11 |
# File 'lib/jekyll-gensocial/image_creator/background_layer_config.rb', line 9 def initialize(hash, base_path:) @path = File.join(base_path, hash["path"]) unless hash["path"].nil? end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/jekyll-gensocial/image_creator/background_layer_config.rb', line 7 def path @path end |