Class: KCommercial::Resources::BundleGenerator
- Inherits:
-
Object
- Object
- KCommercial::Resources::BundleGenerator
- Defined in:
- lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bundle_name ⇒ Object
Returns the value of attribute bundle_name.
-
#component_name ⇒ Object
Returns the value of attribute component_name.
-
#resource_path ⇒ Object
Returns the value of attribute resource_path.
Instance Method Summary collapse
- #check_exist? ⇒ Boolean
- #generate! ⇒ Object
-
#initialize(component_name, bundle_name, resource_path) ⇒ BundleGenerator
constructor
A new instance of BundleGenerator.
Constructor Details
#initialize(component_name, bundle_name, resource_path) ⇒ BundleGenerator
Returns a new instance of BundleGenerator.
6 7 8 9 10 |
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 6 def initialize(component_name, bundle_name, resource_path) @component_name = component_name @bundle_name = bundle_name @resource_path = resource_path end |
Instance Attribute Details
#bundle_name ⇒ Object
Returns the value of attribute bundle_name.
4 5 6 |
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 4 def bundle_name @bundle_name end |
#component_name ⇒ Object
Returns the value of attribute component_name.
4 5 6 |
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 4 def component_name @component_name end |
#resource_path ⇒ Object
Returns the value of attribute resource_path.
4 5 6 |
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 4 def resource_path @resource_path end |
Instance Method Details
#check_exist? ⇒ Boolean
12 13 14 |
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 12 def check_exist? raise NotImplementedError, "#{self.class.name}#check是抽象方法" end |
#generate! ⇒ Object
16 17 18 |
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 16 def generate! raise NotImplementedError, "#{self.class.name}#generate!是抽象方法" end |