Class: Kut::Library::Generator
- Inherits:
-
Object
- Object
- Kut::Library::Generator
- Defined in:
- lib/kut/library/generator.rb
Overview
Generator concept
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#generate(in_f, out_f, options) ⇒ Object
Generate library Options for all generators: :no_lib_decl - output only components without library head and end in_f input file out_f output file.
- #help ⇒ Object
-
#initialize(name) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(name) ⇒ Generator
Returns a new instance of Generator.
8 9 10 |
# File 'lib/kut/library/generator.rb', line 8 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/kut/library/generator.rb', line 6 def name @name end |
Instance Method Details
#generate(in_f, out_f, options) ⇒ Object
Generate library Options for all generators: :no_lib_decl - output only components without library head and end in_f input file out_f output file
20 21 |
# File 'lib/kut/library/generator.rb', line 20 def generate(in_f, out_f, ) end |
#help ⇒ Object
12 13 14 |
# File 'lib/kut/library/generator.rb', line 12 def help 'How to use this generator is help string' end |