Class: DevSystem::ShellGenerator
- Inherits:
-
SimpleGenerator
- Object
- Liza::Unit
- Liza::Controller
- Generator
- BaseGenerator
- SimpleGenerator
- DevSystem::ShellGenerator
- Defined in:
- lib/dev_system/sub/shell/generators/shell_generator.rb
Instance Attribute Summary
Attributes inherited from BaseGenerator
Instance Method Summary collapse
-
#call_default ⇒ Object
liza g shell name place=app.
-
#call_examples ⇒ Object
liza g shell:examples.
Methods inherited from SimpleGenerator
#add_change, #changes, #copy_examples, #copy_file, #copy_files, #create_controller, #create_file, #create_unit, #inform, #last_change, #name!, #place!, #puts_line, #save
Methods inherited from BaseGenerator
#args, #call, call, #command, get_generator_signatures, #inform, #save
Methods inherited from Generator
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Instance Method Details
#call_default ⇒ Object
liza g shell name place=app
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dev_system/sub/shell/generators/shell_generator.rb', line 5 def call_default @controller_class = Shell name! place! create_controller @name, @controller_class, @place, @path do |unit, test| unit.section :controller_section_1, caption: "#{@class_name}.call('sum', 1, 2)" unit.section :controller_section_2, caption: "#{@class_name}.sum(1, 2)" unit.section :controller_section_3, caption: "#{@class_name}.sub(1, 2)" test.section :controller_test_section_1 test.section :controller_test_section_2 test.section :controller_test_section_3 end end |
#call_examples ⇒ Object
liza g shell:examples
23 24 25 |
# File 'lib/dev_system/sub/shell/generators/shell_generator.rb', line 23 def call_examples copy_examples Shell end |