Class: TboxAppGenerator
- Inherits:
-
RubiGen::Base
- Object
- RubiGen::Base
- TboxAppGenerator
- 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
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(runtime_args, runtime_options = {}) ⇒ TboxAppGenerator
constructor
A new instance of TboxAppGenerator.
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, = {}) super usage if args.empty? @destination_root = File.(args.shift) @name = base_name end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
8 9 10 |
# File 'lib/tbox_app_generator.rb', line 8 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/tbox_app_generator.rb', line 9 def name @name end |