class SdocAllGenerator
Constants
- BASEDIRS
- DEFAULT_SHEBANG
Public Class Methods
new(runtime_args, runtime_options = {})
click to toggle source
Calls superclass method
# File lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb, line 5 def initialize(runtime_args, runtime_options = {}) super usage if args.empty? @destination_root = File.expand_path(args.shift) @name = base_name extract_options end
Public Instance Methods
manifest()
click to toggle source
# File lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb, line 13 def manifest record do |m| m.directory '' BASEDIRS.each { |path| m.directory path } m.file_copy_each %w(Rakefile) m.file_copy_each %w(config.yml) end end
Protected Instance Methods
add_options!(opts)
click to toggle source
# File lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb, line 40 def add_options!(opts) opts.separator '' opts.separator 'Options:' opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.") end
extract_options()
click to toggle source
# File lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb, line 47 def extract_options end