class New::Template
Constants
- CUSTOM_CONFIG_TEMPLATE
The foundation for new template configuration files
Public Class Methods
new(type, name)
click to toggle source
# File lib/new/template.rb, line 17 def initialize type, name @type = type @name = name interpolate template_dir, options end
Public Instance Methods
options()
click to toggle source
Create the options object
# File lib/new/template.rb, line 26 def options # merge options together CUSTOM_CONFIG_TEMPLATE.clone .deep_merge!(template_config) .deep_merge!(New.custom_config) .deep_merge!({ project_name: @name, type: @type.to_s }) end