class LayoutGenerator
Public Instance Methods
generate_layout()
click to toggle source
# File lib/generators/layout/layout_generator.rb, line 6 def generate_layout copy_file "stylesheet.css", "public/stylesheets/#{file_name}.css" if options.stylesheet? template "layout.html.erb", "app/views/layouts/#{file_name}.html.erb" end
Private Instance Methods
file_name()
click to toggle source
# File lib/generators/layout/layout_generator.rb, line 13 def file_name layout_name.underscore end