Class: Yardstick::Rules::Summary::Delimiter
- Inherits:
-
Yardstick::Rule
- Object
- Yardstick::Rule
- Yardstick::Rules::Summary::Delimiter
- Defined in:
- lib/yardstick/rules/summary.rb
Overview
Checks that method summary doesn’t end with a period
Instance Attribute Summary
Attributes inherited from Yardstick::Rule
Instance Method Summary collapse
-
#valid? ⇒ Boolean
private
True if summary text does not end with a period.
Methods inherited from Yardstick::Rule
coerce, #enabled?, #initialize, #validatable?
Constructor Details
This class inherits a constructor from Yardstick::Rule
Instance Method Details
#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 summary text does not end with a period.
63 64 65 |
# File 'lib/yardstick/rules/summary.rb', line 63 def valid? summary_text[-1, 1] != '.' end |