lib/rubocop/ast/node/array_node.rb in rubocop-0.47.1 vs lib/rubocop/ast/node/array_node.rb in rubocop-0.48.0
- old
+ new
@@ -27,12 +27,15 @@
# Checks whether the `array` literal is delimited by percent brackets.
#
# @overload percent_literal?
# Check for any percent literal.
+ #
# @overload percent_literal?(type)
# Check for percent literaly of type `type`.
- # @param type [Symbol] an optional percent literal type
+ #
+ # @param type [Symbol] an optional percent literal type
+ #
# @return [Boolean] whether the array is enclosed in percent brackets
def percent_literal?(type = nil)
if type
loc.begin && loc.begin.source =~ PERCENT_LITERAL_TYPES[type]
else