Class: Jekyll::Drops::DocumentDrop
- 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
#collection ⇒ Object
15 16 17 |
# File 'lib/jekyll/drops/document_drop.rb', line 15 def collection @obj.collection.label end |
#excerpt ⇒ Object
19 20 21 |
# File 'lib/jekyll/drops/document_drop.rb', line 19 def excerpt fallback_data['excerpt'].to_s end |