Class: Jekyll::Commands::Post::PostArgParser

Inherits:
Jekyll::Compose::ArgParser show all
Defined in:
lib/jekyll/commands/post.rb

Instance Attribute Summary

Attributes inherited from Jekyll::Compose::ArgParser

#args, #config, #options

Instance Method Summary collapse

Methods inherited from Jekyll::Compose::ArgParser

#force?, #initialize, #layout, #source, #timestamp_format, #title, #type, #validate!

Constructor Details

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

Instance Method Details

#dateObject



43
44
45
# File 'lib/jekyll/commands/post.rb', line 43

def date
  @date ||= options["date"] ? Date.parse(options["date"]) : Time.now
end