Class: Bunto::Commands::Post::PostArgParser

Inherits:
Bunto::Compose::ArgParser show all
Defined in:
lib/bunto/commands/post.rb

Instance Attribute Summary

Attributes inherited from Bunto::Compose::ArgParser

#args, #options

Instance Method Summary collapse

Methods inherited from Bunto::Compose::ArgParser

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

Constructor Details

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

Instance Method Details

#dateObject



35
36
37
# File 'lib/bunto/commands/post.rb', line 35

def date
  options["date"].nil? ? Time.now : DateTime.parse(options["date"])
end