Class: JekyllOgImage::Configuration::Border
- Inherits:
-
Data
- Object
- Data
- JekyllOgImage::Configuration::Border
- Defined in:
- lib/jekyll_og_image/configuration.rb
Instance Attribute Summary collapse
-
#fill ⇒ Object
readonly
Returns the value of attribute fill.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width: 0, fill: nil) ⇒ Border
constructor
A new instance of Border.
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
#fill ⇒ Object (readonly)
Returns the value of attribute fill
24 25 26 |
# File 'lib/jekyll_og_image/configuration.rb', line 24 def fill @fill end |
#width ⇒ Object (readonly)
Returns the value of attribute width
24 25 26 |
# File 'lib/jekyll_og_image/configuration.rb', line 24 def width @width end |