Sha256: 44cdc1ba76c4ea7ba61688369d4877df86b874a3038262b5672c69bdf9fa2889

Contents?: true

Size: 677 Bytes

Versions: 56

Compression:

Stored size: 677 Bytes

Contents

class Card
  class FileCardCreator
    # Move css or scss from the card database to a file.
    # It generates three files:
    #  1. a migration file that ensures the card has a codename and adds it to the
    #     style rule card.
    #  2. a style file with the source code
    #  3. a ruby file (=code rule) that ties the style file to the card
    class StyleCard < AbstractFileCard
      @supported_types = %i[css scss]
      @category = :style
      @default_rule_name = "*all+*style"

      private

      def type_codename
        @type_codename ||= @type.to_sym
      end

      def source_file_dir
        File.join "lib", "stylesheets"
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
card-1.104.2 lib/card/file_card_creator/style_card.rb
card-1.104.1 lib/card/file_card_creator/style_card.rb
card-1.104.0 lib/card/file_card_creator/style_card.rb
card-1.103.4 lib/card/file_card_creator/style_card.rb
card-1.103.3 lib/card/file_card_creator/style_card.rb
card-1.103.2 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.103.1 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.103.0 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.7 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.102.0 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.6 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.5 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.4 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.3 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.2 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.1 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.101.0 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.100.0 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.99.6 lib/card/tasks/card/file_card_creator/style_card.rb
card-1.99.5 lib/card/tasks/card/file_card_creator/style_card.rb