class DateWrapper::Generators::StylesheetsGenerator

Public Class Methods

new(*args, &block) click to toggle source
Calls superclass method
# File lib/generators/date_wrapper/stylesheets_generator.rb, line 15
def initialize(*args, &block)
  super
  generate_stylesheets
end
source_root() click to toggle source
# File lib/generators/date_wrapper/stylesheets_generator.rb, line 11
def self.source_root
  File.expand_path(File.join(File.dirname(__FILE__), '../../../app/assets/stylesheets'))
end

Private Instance Methods

generate_stylesheets() click to toggle source
# File lib/generators/date_wrapper/stylesheets_generator.rb, line 22
def generate_stylesheets
  template "date_wrapper.scss", "app/assets/stylesheets/date_wrapper.scss"
end