Class: ShuboxAppGenerator
- Inherits:
-
RubiGen::Base
- Object
- RubiGen::Base
- ShuboxAppGenerator
- Defined in:
- lib/shubox_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 = {}) ⇒ ShuboxAppGenerator
constructor
A new instance of ShuboxAppGenerator.
Constructor Details
#initialize(runtime_args, runtime_options = {}) ⇒ ShuboxAppGenerator
Returns a new instance of ShuboxAppGenerator.
11 12 13 14 15 16 17 |
# File 'lib/shubox_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/shubox_app_generator.rb', line 8 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/shubox_app_generator.rb', line 9 def name @name end |