Class: Jekyll::AgentMarkdown::AuthorMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/agent_markdown/author_metadata.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ AuthorMetadata

Returns a new instance of AuthorMetadata.



8
9
10
# File 'lib/jekyll/agent_markdown/author_metadata.rb', line 8

def initialize(config)
  @config = config
end

Instance Method Details

#to_sObject



12
13
14
15
# File 'lib/jekyll/agent_markdown/author_metadata.rb', line 12

def to_s
  author_name = name
  author_name.empty? ? "" : "Author: #{author_name}"
end