Class: Jekyll::Commands::Draft::DraftFileInfo

Inherits:
Jekyll::Compose::FileInfo show all
Defined in:
lib/jekyll/commands/draft.rb

Instance Attribute Summary

Attributes inherited from Jekyll::Compose::FileInfo

#params

Instance Method Summary collapse

Methods inherited from Jekyll::Compose::FileInfo

#content, #file_name, #initialize

Constructor Details

This class inherits a constructor from Jekyll::Compose::FileInfo

Instance Method Details

#pathObject



41
42
43
# File 'lib/jekyll/commands/draft.rb', line 41

def path
  "_drafts/#{file_name}"
end

#resource_typeObject



37
38
39
# File 'lib/jekyll/commands/draft.rb', line 37

def resource_type
  "draft"
end