Module: BuildTool::Commands::HelpText

Included in:
Base
Defined in:
lib/build-tool/commands.rb

Overview

Module that provides some standard helptext functionality

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



69
70
71
# File 'lib/build-tool/commands.rb', line 69

def self.included( klass )
    klass.extend( ClassMethods )
end

Instance Method Details

#cmdaliasObject



57
58
59
# File 'lib/build-tool/commands.rb', line 57

def cmdalias
    self.class.cmdalias
end

#descriptionObject



61
62
63
# File 'lib/build-tool/commands.rb', line 61

def description
    self.class.description
end

#long_descriptionObject



65
66
67
# File 'lib/build-tool/commands.rb', line 65

def long_description
    self.class.long_description || nil
end

#nameObject



53
54
55
# File 'lib/build-tool/commands.rb', line 53

def name
    self.class.name
end