class Instrumentality::GenerateHeader
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/instrumentality/command/generate_header.rb, line 19 def initialize(argv) @instrument = argv.shift_argument super end
options()
click to toggle source
Calls superclass method
# File lib/instrumentality/command/generate_header.rb, line 6 def self.options [ ].concat(super) end
Public Instance Methods
run()
click to toggle source
# File lib/instrumentality/command/generate_header.rb, line 30 def run header_generator = HeaderGenerator.new(@instrument, @verbose) header_generator.generate end
validate!()
click to toggle source
Calls superclass method
# File lib/instrumentality/command/generate_header.rb, line 24 def validate! super help! 'An instrument name is required' unless @instrument end