Class: Jekyll::Gensocial::ImageCreator::BackgroundLayerConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-gensocial/image_creator/background_layer_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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