Method: RuboCop::Cop::Style::FormatString#formatter

Defined in:
lib/rubocop/cop/style/format_string.rb

#formatter(node) ⇒ Object

[View source]

61
62
63
64
65
66
67
# File 'lib/rubocop/cop/style/format_string.rb', line 61

def_node_matcher :formatter, <<~PATTERN
  {
    (send nil? ${:sprintf :format} _ _ ...)
    (send {str dstr} $:% ... )
    (send !nil? $:% {array hash})
  }
PATTERN