Class: Twat::Subcommands::Version
- Defined in:
- lib/twat/subcommands/version.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#args, #auth!, #beep, #config, #deentitize, #enable_readline!, #format, #initialize, #needs_arguments, #needs_at_least, #opts, #pad, #reader, #run!, #usage, #usage_and_exit!
Methods included from Exceptions
Constructor Details
This class inherits a constructor from Twat::Subcommands::Base
Class Method Details
.usage ⇒ Object
8 9 10 |
# File 'lib/twat/subcommands/version.rb', line 8 def self.usage "Usage: twat version" end |
Instance Method Details
#run ⇒ Object
4 5 6 |
# File 'lib/twat/subcommands/version.rb', line 4 def run puts "twat: #{Twat::VERSION}" end |