Class: Yardstick::Rules::Summary::Delimiter

Inherits:
Yardstick::Rule show all
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

#document

Instance Method Summary collapse

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.

Returns:

  • (Boolean)

    true if summary text does not end with a period

See Also:

  • description


63
64
65
# File 'lib/yardstick/rules/summary.rb', line 63

def valid?
  summary_text[-1, 1] != '.'
end