Class: FlutterRb::PluginPodspecCheck
- Defined in:
- lib/flutter_rb/checks/plugin_podspec_check.rb
Overview
This class represents a check for Flutter plugin’s podspec file. It is an abstract class and should be subclassed to perform specific checks.
Direct Known Subclasses
PluginPodspecAuthorsCheck, PluginPodspecNameCheck, PluginPodspecSourceCheck, PluginPodspecVersionCheck
Constant Summary
Constants inherited from Check
Instance Method Summary collapse
-
#description ⇒ String
Returns the description of the check.
-
#name ⇒ String
Returns the name of the check.
-
#podspec_parameter ⇒ String
Returns the parameter for which the check is performed in the podspec file.
Methods inherited from Check
Instance Method Details
#description ⇒ String
Returns the description of the check. The description explains the purpose of the check, which is to validate a specific parameter in the Flutter plugin’s podspec file.
32 33 34 |
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 32 def description "Validate Flutter plugin's #{podspec_parameter} in podspec file" end |
#name ⇒ String
Returns the name of the check. The name is constructed by appending the capitalized podspec_parameter to “PluginPodspecCheck”.
14 15 16 |
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 14 def name "PluginPodspec#{podspec_parameter.capitalize}Check" end |
#podspec_parameter ⇒ String
Returns the parameter for which the check is performed in the podspec file. This method should be implemented in subclasses to specify the specific parameter.
23 24 25 |
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 23 def podspec_parameter raise UNIMPLEMENTED_ERROR end |