Skip to content

Commit

Permalink
Fix yard docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Dec 31, 2021
1 parent 4bd8199 commit 1d7a9ed
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ class RedundantPresenceValidationOnBelongsTo < Base
)
PATTERN

# @!method optional_option?(node)
# Match a `belongs_to` association with an optional option in a hash
# @!method optional?(node)
# Match a `belongs_to` association with an optional option in a hash
def_node_matcher :optional?, <<~PATTERN
(send nil? :belongs_to _ ... #optional_option?)
PATTERN

# @!method optional_option?(node)
# Match an optional option in a hash
# Match an optional option in a hash
def_node_matcher :optional_option?, <<~PATTERN
{
(hash <(pair (sym :optional) true) ...>) # optional: true
Expand Down Expand Up @@ -124,7 +124,7 @@ class RedundantPresenceValidationOnBelongsTo < Base
)
PATTERN

# @!method belongs_to_without_fk?(node, fk)
# @!method belongs_to_without_fk?(node, key)
# Match a matching `belongs_to` association, without an explicit `foreign_key` option
#
# @param node [RuboCop::AST::Node]
Expand Down

0 comments on commit 1d7a9ed

Please sign in to comment.