Method: Lifer::Entry#summary

Defined in:
lib/lifer/entry.rb

#summaryString

If given a summary in the frontmatter of the entry, we can use this to provide a summary.

Since subclasses may have more sophisticated access to the document, they may override this method with their own distinct implementations.

Returns:

  • (String)

    A summary of the entry.



240
241
242
# File 'lib/lifer/entry.rb', line 240

def summary
  return frontmatter[:summary] if frontmatter[:summary]
end