Class: Template
- Inherits:
-
Generable::Base
- Object
- Generable::Base
- Template
- Defined in:
- lib/aina/generable/types/template.rb
Instance Attribute Summary
Attributes inherited from Generable::Base
#aina_version, #file, #supports, #template
Instance Method Summary collapse
Methods inherited from Generable::Base
#after_generate, #destroy, #dir, #generate, #initialize, #replacements, #set_custom_vars
Methods included from Generable
accepts?, #after_generate, class_name_for, #dir, generable_types, #get_after_generate, #get_dir, #get_replacements, #get_template, #replacements, #template
Constructor Details
This class inherits a constructor from Generable::Base
Instance Method Details
#display_name ⇒ Object
9 10 11 12 13 14 |
# File 'lib/aina/generable/types/template.rb', line 9 def display_name @original_name. split("_"). map { |w| w.capitalize! }. join(" ") end |
#name ⇒ Object
5 6 7 |
# File 'lib/aina/generable/types/template.rb', line 5 def name "template-#{@original_name}" end |