Class: Jekyll::Drops::DocumentDrop

Inherits:
Drop
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/jekyll/drops/document_drop.rb

Constant Summary

Constants inherited from Drop

Jekyll::Drops::Drop::NON_CONTENT_METHODS

Instance Method Summary collapse

Methods inherited from Drop

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

Constructor Details

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

Instance Method Details

#collectionObject



15
16
17
# File 'lib/jekyll/drops/document_drop.rb', line 15

def collection
  @obj.collection.label
end

#excerptObject



19
20
21
# File 'lib/jekyll/drops/document_drop.rb', line 19

def excerpt
  fallback_data['excerpt'].to_s
end