Class: JekyllOgImage::Configuration::Border

Inherits:
Data
  • Object
show all
Defined in:
lib/jekyll_og_image/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width: 0, fill: nil) ⇒ Border

Returns a new instance of Border.



25
26
27
28
# File 'lib/jekyll_og_image/configuration.rb', line 25

def initialize(width: 0, fill: nil)
  fill.is_a?(Array) ? fill : [ fill ]
  super(width: width, fill: fill)
end

Instance Attribute Details

#fillObject (readonly)

Returns the value of attribute fill

Returns:

  • (Object)

    the current value of fill



24
25
26
# File 'lib/jekyll_og_image/configuration.rb', line 24

def fill
  @fill
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



24
25
26
# File 'lib/jekyll_og_image/configuration.rb', line 24

def width
  @width
end