Class: Jekyll::Drops::ExcerptDrop

Inherits:
DocumentDrop show all
Defined in:
lib/jekyll/drops/excerpt_drop.rb

Constant Summary

Constants inherited from DocumentDrop

DocumentDrop::NESTED_OBJECT_FIELD_BLACKLIST

Constants inherited from Drop

Drop::NON_CONTENT_METHODS

Instance Method Summary collapse

Methods inherited from DocumentDrop

#<=>, #categories, #collapse_document, #collection, #hash_for_json, #next, #previous, #tags, #title

Methods inherited from Drop

#[], #[]=, #content_methods, #each, #each_key, #fetch, #hash_for_json, #initialize, #inspect, #key?, #keys, #merge, #merge!, mutable, mutable?, #to_h, #to_json

Constructor Details

This class inherits a constructor from Jekyll::Drops::Drop

Instance Method Details

#dateObject


10
11
12
# File 'lib/jekyll/drops/excerpt_drop.rb', line 10

def date
  @obj.doc.date
end

#excerptObject


14
15
16
# File 'lib/jekyll/drops/excerpt_drop.rb', line 14

def excerpt
  nil
end

#layoutObject


6
7
8
# File 'lib/jekyll/drops/excerpt_drop.rb', line 6

def layout
  @obj.doc.data["layout"]
end