Class: Yardstick::Rules::ReturnTag
- Inherits:
-
Yardstick::Rule
- Object
- Yardstick::Rule
- Yardstick::Rules::ReturnTag
- Defined in:
- lib/yardstick/rules/return_tag.rb
Overview
Checks if method has a @return tag
Instance Attribute Summary
Attributes inherited from Yardstick::Rule
Instance Method Summary collapse
-
#valid? ⇒ Boolean
private
True if has return tag.
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 has return tag.
16 17 18 |
# File 'lib/yardstick/rules/return_tag.rb', line 16 def valid? has_tag?('return') end |