Class: Kut::Library::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/kut/library/generator.rb

Overview

Generator concept

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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, options)
end

#helpObject



12
13
14
# File 'lib/kut/library/generator.rb', line 12

def help
  'How to use this generator is help string'
end