Class: Jekyll::Drops::UnifiedPayloadDrop

Inherits:
Drop
  • Object
show all
Defined in:
lib/jekyll/drops/unified_payload_drop.rb

Constant Summary

Constants inherited from Drop

Drop::NON_CONTENT_METHODS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Drop

#[], #[]=, #content_methods, data_delegator, data_delegators, delegate_method, delegate_method_as, delegate_methods, #each, #each_key, #fetch, getter_method_names, #hash_for_json, #initialize, #inspect, #key?, #keys, #merge, #merge!, mutable, mutable?, private_delegate_methods, #to_h, #to_json

Constructor Details

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

Instance Attribute Details

#contentObject

Returns the value of attribute content.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def content
  @content
end

#highlighter_prefixObject

Returns the value of attribute highlighter_prefix.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def highlighter_prefix
  @highlighter_prefix
end

#highlighter_suffixObject

Returns the value of attribute highlighter_suffix.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def highlighter_suffix
  @highlighter_suffix
end

#layoutObject

Returns the value of attribute layout.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def layout
  @layout
end

#pageObject

Returns the value of attribute page.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def page
  @page
end

#paginatorObject

Returns the value of attribute paginator.



8
9
10
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 8

def paginator
  @paginator
end

Instance Method Details

#jekyllObject



11
12
13
# File 'lib/jekyll/drops/unified_payload_drop.rb', line 11

def jekyll
  JekyllDrop.global
end

#siteObject



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

def site
  @site_drop ||= SiteDrop.new(@obj)
end

#themeObject



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

def theme
  @theme_drop ||= ThemeDrop.new(@obj.theme) if @obj.theme
end