Sha256: d0cdad6617bb9ce882d1b81df3b914d0663fc69e0e4f19d9310c84697cf20eaa
Contents?: true
Size: 484 Bytes
Versions: 14
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module RuboCop module RSpec module Language # Helper methods to detect RSpec DSL used with send and block module NodePattern def send_pattern(string) "(send #rspec? #{string} ...)" end def block_pattern(string) "(block #{send_pattern(string)} ...)" end def numblock_pattern(string) "(numblock #{send_pattern(string)} ...)" end end end end end
Version data entries
14 entries across 14 versions & 2 rubygems