Class: Twat::Subcommands::Follow
- Defined in:
- lib/twat/subcommands/follow.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
11 12 13 |
# File 'lib/twat/subcommands/follow.rb', line 11 def self.usage "Usage: twat follow USERNAME" end |
Instance Method Details
#run ⇒ Object
4 5 6 7 8 9 |
# File 'lib/twat/subcommands/follow.rb', line 4 def run needs_arguments(1) auth! Twitter.follow(@argv[0]) end |