Class: KCommercial::Resources::CodeGenerator
- Inherits:
-
Object
- Object
- KCommercial::Resources::CodeGenerator
- Defined in:
- lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb
Instance Attribute Summary collapse
-
#keys ⇒ Array<String>
readonly
The key defines for the generator.
-
#super_module ⇒ String
readonly
The super module default is MKResources.
Instance Method Summary collapse
- #implementation_contents ⇒ Object
-
#initialize(keys, options = {}) ⇒ CodeGenerator
constructor
Create a new SwiftGenerator.
Constructor Details
#initialize(keys, options = {}) ⇒ CodeGenerator
Create a new SwiftGenerator
26 27 28 29 30 |
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 26 def initialize(keys, = {}) @keys = keys @keys ||= [] @super_module = .delete(:super) { :MKResources } end |
Instance Attribute Details
#keys ⇒ Array<String> (readonly)
The key defines for the generator
22 23 24 |
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 22 def keys @keys end |
#super_module ⇒ String (readonly)
The super module default is MKResources
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_contents ⇒ Object
32 33 34 |
# File 'lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb', line 32 def implementation_contents raise NotImplementedError end |