Class: Vanity::Templates

Inherits:
Object
  • Object
show all
Defined in:
lib/vanity/templates.rb

Instance Method Summary collapse

Constructor Details

#initializeTemplates

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