Class: TboxAppGenerator

Inherits:
RubiGen::Base
  • Object
show all
Defined in:
lib/tbox_app_generator.rb

Constant Summary collapse

DEFAULT_SHEBANG =
File.join(Config::CONFIG['bindir'],
Config::CONFIG['ruby_install_name'])

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(runtime_args, runtime_options = {}) ⇒ TboxAppGenerator

Returns a new instance of TboxAppGenerator.



11
12
13
14
15
16
17
# File 'lib/tbox_app_generator.rb', line 11

def initialize(runtime_args, runtime_options = {})
  super
  usage if args.empty?
  @destination_root = File.expand_path(args.shift)
  @name = base_name
  extract_options
end

Instance Attribute Details

#languageObject (readonly)

Returns the value of attribute language.



8
9
10
# File 'lib/tbox_app_generator.rb', line 8

def language
  @language
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/tbox_app_generator.rb', line 9

def name
  @name
end