Sha256: b87cd4bf1113c371eb07a818d64f072fddd1fb2ce56e1152da0203fcc62872f7

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 Bytes

Contents

require 'rails/generators'

module Railwind
    class CardGenerator < Rails::Generators::Base
      source_root File.expand_path('templates', __dir__)
  
      def create_component_file
        copy_file "card/card_component.rb", "app/components/card_component.rb"
        copy_file "card/_card_component.html.erb", "app/components/card_component.html.erb"
      end
    end
  end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
railwind-0.1.26 lib/railwind/generators/card_generator.rb
railwind-0.1.25 lib/railwind/generators/card_generator.rb
railwind-0.1.24 lib/railwind/generators/card_generator.rb
railwind-0.1.23 lib/railwind/generators/card_generator.rb
railwind-0.1.22 lib/railwind/generators/card_generator.rb