Method: RuboCop::Cop::Rails::RootPathnameMethods#rails_root?

Defined in:
lib/rubocop/cop/rails/root_pathname_methods.rb

#rails_root?(node) ⇒ Object



159
160
161
# File 'lib/rubocop/cop/rails/root_pathname_methods.rb', line 159

def_node_matcher :rails_root?, <<~PATTERN
  (send (const {nil? cbase} :Rails) {:root :public_path})
PATTERN