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



39
40
41
# File 'lib/jekyll/commands/draft.rb', line 39

def path
  "_drafts/#{file_name}"
end

#resource_typeObject



35
36
37
# File 'lib/jekyll/commands/draft.rb', line 35

def resource_type
  "draft"
end