Class: EmptyTemplate
- Inherits:
-
Object
- Object
- EmptyTemplate
- Defined in:
- lib/empty_template.rb
Constant Summary collapse
- @@empty_template_dir =
File.(File.join(File.dirname(__FILE__), "empty_templates"))
Class Method Summary collapse
Class Method Details
.empty_template_dir=(value) ⇒ Object
3 4 5 |
# File 'lib/empty_template.rb', line 3 def self.empty_template_dir=(value) @@empty_template_dir = value end |
.read(template_name) ⇒ Object
7 8 9 |
# File 'lib/empty_template.rb', line 7 def self.read(template_name) File.read(File.join(@@empty_template_dir, "#{template_name}.xml")) end |