module Rails

def root

Experimental RBS support (using type sampling data from the type_fusion project).

def root: () -> Pathname

This signature was generated using 2 samples from 1 application.

# => #
Rails.root

otherwise it returns +nil+ if there is no project:
Returns a Pathname object of the current Rails project,
def root
  application && application.config.root
end