Module: RelatedFile::ClassMethods

Included in:
RelatedFile
Defined in:
app/models/related_file.rb

Instance Method Summary collapse

Instance Method Details

#new_from_path?(path) ⇒ Boolean

Returns:

  • (Boolean)

14
15
16
17
# File 'app/models/related_file.rb', line 14

def new_from_path?(path)
	library_name=FilePattern.path2model_name?(path)
	RelatedFile.new(library_name, FilePattern.project_root_dir?(path))
end