Class: Jekyll::Drops::ThemeDrop

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

Constant Summary

Constants inherited from Drop

Drop::NON_CONTENT_METHODS

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 Method Details

#authorsObject



12
13
14
# File 'lib/jekyll/drops/theme_drop.rb', line 12

def authors
  @authors ||= gemspec.authors.join(", ")
end

#descriptionObject



20
21
22
# File 'lib/jekyll/drops/theme_drop.rb', line 20

def description
  @description ||= gemspec.description || gemspec.summary
end

#metadataObject



24
25
26
# File 'lib/jekyll/drops/theme_drop.rb', line 24

def 
  @metadata ||= gemspec.
end

#rootObject



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

def root
  @root ||= ENV["JEKYLL_ENV"] == "development" ? @obj.root : ""
end

#versionObject



16
17
18
# File 'lib/jekyll/drops/theme_drop.rb', line 16

def version
  @version ||= gemspec.version.to_s
end