Sha256: d6670f08562d7d0d1beb70eb0f483a36220b0c09375c8cf00e023d772301fd48

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

require 'rails/generators'

module Railwind
    class ButtonGenerator < Rails::Generators::Base
      source_root File.expand_path('templates', __dir__)
  
      def create_component_file
        copy_file "button/button_component.rb", "app/components/button_component.rb"
        copy_file "button/_button_component.html.erb", "app/components/button_component.html.erb"
      end
    end
  end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railwind-0.1.23 lib/railwind/generators/button_generator.rb
railwind-0.1.22 lib/railwind/generators/button_generator.rb