Class: Pot::Template
- Inherits:
-
Object
- Object
- Pot::Template
- Defined in:
- lib/pot/template.rb
Instance Method Summary collapse
-
#initialize(package, name) ⇒ Template
constructor
A new instance of Template.
- #path ⇒ Object
Constructor Details
Instance Method Details
#path ⇒ Object
8 9 10 11 12 |
# File 'lib/pot/template.rb', line 8 def path default_file_path = File.join(templates_directory, 'defaults', @package.name.to_s, @name.to_s) raise "Can't read template #{default_file_path}" unless File.readable?(default_file_path) default_file_path end |