class Law::Generators::RegulationGenerator

Public Instance Methods

create_regulation() click to toggle source
# File lib/generators/law/regulation/regulation_generator.rb, line 10
def create_regulation
  template "regulation.rb.erb", File.join("app/regulations/", class_path, "#{file_name}_regulation.rb")
end