Module: RailsAssist::Artifact::Path

Includes:
Directory
Defined in:
lib/rails_assist/artifact/path.rb

Constant Summary

Constants included from Directory::Methods

Directory::Methods::APP_DIR, Directory::Methods::DIR

Instance Method Summary collapse

Methods included from Directory::Methods

#migration_dir, #migration_dirpath, #observer_dir, #observer_dirpath

Instance Method Details

#artifact_path(name, type, options = {}) ⇒ Object



5
6
7
8
# File 'lib/rails_assist/artifact/path.rb', line 5

def artifact_path name, type, options={}
  dir = send :"#{type}_dirpath", options
  File.join(dir, "#{name}#{type_postfix type}.rb")
end