Class: Header
- Inherits:
-
Erebus::NamedGenerator
- Object
- Thor::Group
- Erebus::Generator
- Erebus::NamedGenerator
- Header
- Defined in:
- lib/erebus/generators/header.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Erebus::Generator
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/erebus/generators/header.rb', line 10 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#create_header_file ⇒ Object
14 15 16 17 |
# File 'lib/erebus/generators/header.rb', line 14 def create_header_file Header.validate_project template "templates/blank.erb", "include/#{file_name}.#{ext}" end |