Class: FlutterRb::PluginPubspecCheck
- Defined in:
- lib/flutter_rb/checks/plugin_pubspec_check.rb
Overview
This class represents a check for Flutter plugin’s pubspec.yaml file. It is an abstract class and should be subclassed to perform specific checks.
Direct Known Subclasses
PluginPubspecAuthorCheck, PluginPubspecDescriptionCheck, PluginPubspecHomepageCheck, PluginPubspecNameCheck, PluginPubspecVersionCheck
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.
-
#pubspec_parameter ⇒ String
Returns the parameter to be checked in the pubspec.yaml file.
Methods inherited from Check
Instance Method Details
#description ⇒ String
Returns the description of the check. The description explains what the check is validating.
31 32 33 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 31 def description "Validate Flutter plugin's #{pubspec_parameter} in pubspec.yaml" end |
#name ⇒ String
Returns the name of the check. The name is constructed by appending the capitalized pubspec_parameter to “PluginPubspecCheck”.
14 15 16 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 14 def name "PluginPubspec#{pubspec_parameter.capitalize}Check" end |
#pubspec_parameter ⇒ String
Returns the parameter to be checked in the pubspec.yaml file. This method should be implemented in subclasses to specify the specific parameter to be checked.
23 24 25 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 23 def pubspec_parameter raise UNIMPLEMENTED_ERROR end |