Method: RuboCop::Cop::Style::ArrayCoercion#unless_array?
- Defined in:
- lib/rubocop/cop/style/array_coercion.rb
#unless_array?(node) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/rubocop/cop/style/array_coercion.rb', line 53 def_node_matcher :unless_array?, "(if\n (send\n (lvar $_) :is_a?\n (const nil? :Array)) nil?\n (lvasgn $_\n (array\n (lvar $_))))\n" |