Module: Rubyzen::Providers::FilePathProvider

Overview

Provides access to the file path of a declaration by traversing parent declarations.

Instance Method Summary collapse

Instance Method Details

#file_pathString?

Returns the file path containing this declaration.

Returns:

  • (String, nil)

    the file path containing this declaration



6
7
8
# File 'lib/rubyzen/providers/file_path_provider.rb', line 6

def file_path
  file_path_recursive(self)
end