Class: Vanity::Templates
- Inherits:
-
Object
- Object
- Vanity::Templates
- Defined in:
- lib/vanity/templates.rb
Instance Method Summary collapse
-
#initialize ⇒ Templates
constructor
A new instance of Templates.
-
#path(name) ⇒ Object
Path to template.
Constructor Details
#initialize ⇒ Templates
Returns a new instance of Templates.
3 4 5 |
# File 'lib/vanity/templates.rb', line 3 def initialize @template_directory = determine_template_directory end |
Instance Method Details
#path(name) ⇒ Object
Path to template.
8 9 10 |
# File 'lib/vanity/templates.rb', line 8 def path(name) File.join(@template_directory, name) end |