Class: CreateGithubRelease::CommandLine::Validations::ValidateQuiet Private
- Defined in:
- lib/create_github_release/command_line/validations.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Validate that the quiet flag is true or false
Instance Method Summary collapse
-
#error ⇒ String+
private
Called when valid? is
false
to return the error messages. -
#valid? ⇒ Boolean
private
Returns
true
if valid.
Methods inherited from Base
Constructor Details
This class inherits a constructor from CreateGithubRelease::CommandLine::Validations::Base
Instance Method Details
#error ⇒ String+
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Called when valid? is false
to return the error messages
128 129 130 |
# File 'lib/create_github_release/command_line/validations.rb', line 128 def error 'quiet must be either true or false' end |
#valid? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true
if valid
121 122 123 |
# File 'lib/create_github_release/command_line/validations.rb', line 121 def valid? .quiet == true || .quiet == false end |