Method: RuboCop::Cop::Style::Dir#dir_replacement?
- Defined in:
- lib/rubocop/cop/style/dir.rb
permalink #dir_replacement?(node) ⇒ Object
[View source]
29 30 31 32 |
# File 'lib/rubocop/cop/style/dir.rb', line 29 def_node_matcher :dir_replacement?, <<~PATTERN {(send (const {nil? cbase} :File) :expand_path (send (const {nil? cbase} :File) :dirname #file_keyword?)) (send (const {nil? cbase} :File) :dirname (send (const {nil? cbase} :File) :realpath #file_keyword?))} PATTERN |