Class: Prophecy::Generators::New
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Prophecy::Generators::New
- Includes:
- Thor::Actions
- Defined in:
- lib/prophecy/generators/new.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
12 13 14 |
# File 'lib/prophecy/generators/new.rb', line 12 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#copy_book ⇒ Object
16 17 18 |
# File 'lib/prophecy/generators/new.rb', line 16 def copy_book directory('book', "#{title.downcase.gsub(/[^a-z0-9-]/, '')}") end |