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 cf8a307
Showing 1 changed file with 3 additions and 3 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

0 comments on commit cf8a307

Please sign in to comment.