class HackCardsGenerator
railscast 218
Public Instance Methods
generate_partials()
click to toggle source
# File lib/generators/hack_cards/hack_cards_generator.rb, line 17 def generate_partials template "card.html.erb", "app/views/layouts/card.html.erb" end
generate_stylesheets()
click to toggle source
all public methods inside a generator will be executed when you call the generator
# File lib/generators/hack_cards/hack_cards_generator.rb, line 13 def generate_stylesheets copy_file "stylesheet.scss", "app/assets/stylsheets/#{layout_name}.scss" end