Class: Law::Generators::LawGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Law::Generators::LawGenerator
- Defined in:
- lib/generators/law/law_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_law ⇒ Object
10 11 12 |
# File 'lib/generators/law/law_generator.rb', line 10 def create_law template "law.rb.erb", File.join("app/laws/", class_path, "#{file_name}_law.rb") end |