Class: Dctl::Command::SmartCommand

Inherits:
CommandParser::Command
  • Object
show all
Defined in:
lib/dctl/command.rb

Direct Known Subclasses

NonRedirectibleCommand, RedirectibleCommand

Instance Method Summary collapse

Constructor Details

#initializeSmartCommand

Returns a new instance of SmartCommand.



18
19
20
# File 'lib/dctl/command.rb', line 18

def initialize
  super self.class.to_s.gsub(/\w+::/, '').gsub(/Command$/, '').downcase
end