Module: Rails3::Assist::Artifact::Path

Includes:
Directory
Defined in:
lib/rails3_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, #observer_dir

Instance Method Details

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



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

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