Class: KCommercial::Resources::CodeGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keys, options = {}) ⇒ CodeGenerator

Create a new SwiftGenerator

Parameters:

  • keys (Array<String>)

    the defines for keys



26
27
28
29
30
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 26

def initialize(keys, options = {})
  @keys = keys
  @keys ||= []
  @super_module = options.delete(:super) { :MKResources }
end

Instance Attribute Details

#keysArray<String> (readonly)

The key defines for the generator

Returns:



22
23
24
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 22

def keys
  @keys
end

#super_moduleString (readonly)

The super module default is MKResources

Returns:



18
19
20
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 18

def super_module
  @super_module
end

Instance Method Details

#implementation_contentsObject

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 32

def implementation_contents
  raise NotImplementedError
end