Class: JekyllOgImage::Configuration::Metadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields: [ "date", "tags" ], separator: " • ", date_format: "%B %d, %Y") ⇒ Metadata

Returns a new instance of Metadata.



38
39
40
# File 'lib/jekyll_og_image/configuration.rb', line 38

def initialize(fields: [ "date", "tags" ], separator: "", date_format: "%B %d, %Y")
  super
end

Instance Attribute Details

#date_formatObject (readonly)

Returns the value of attribute date_format

Returns:

  • (Object)

    the current value of date_format



37
38
39
# File 'lib/jekyll_og_image/configuration.rb', line 37

def date_format
  @date_format
end

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



37
38
39
# File 'lib/jekyll_og_image/configuration.rb', line 37

def fields
  @fields
end

#separatorObject (readonly)

Returns the value of attribute separator

Returns:

  • (Object)

    the current value of separator



37
38
39
# File 'lib/jekyll_og_image/configuration.rb', line 37

def separator
  @separator
end