Sha256: 7e1a404ffc39df9e8f2387390a607d30fe40ddcdf14e813af028e611a303f68f

Contents?: true

Size: 1.41 KB

Versions: 12

Compression:

Stored size: 1.41 KB

Contents

# frozen_string_literal: true

module TailwindDsl
  module Etl
    module RawComponents
      # Target File
      #
      # TargetFile represents each sub_file that can be built from a source file, such as HTML Component, Tailwind Config, Settings and Data Structure
      class TargetFile < TailwindDsl::Etl::Element
        attr_accessor :html_file
        attr_accessor :clean_html_file
        attr_accessor :tailwind_config_file
        attr_accessor :settings_file
        attr_accessor :data_file
        attr_accessor :astro_file

        def initialize(**args)
          @html_file = grab_arg(args, :html_file, guard: 'Missing html_file')
          @clean_html_file = grab_arg(args, :clean_html_file, guard: 'Missing clean_html_file')
          @tailwind_config_file = grab_arg(args, :tailwind_config_file, guard: 'Missing tailwind_config_file')
          @settings_file = grab_arg(args, :settings_file, guard: 'Missing settings_file')
          @data_file = grab_arg(args, :data_file, guard: 'Missing data_file')
          @astro_file = grab_arg(args, :astro_file, guard: 'Missing astro_file')
        end

        def to_h
          {
            html_file: html_file,
            clean_html_file: clean_html_file,
            tailwind_config_file: tailwind_config_file,
            settings_file: settings_file,
            data_file: data_file,
            astro_file: astro_file
          }
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tailwind_dsl-0.0.18 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.17 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.16 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.15 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.14 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.13 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.12 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.11 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.10 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.9 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.8 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb
tailwind_dsl-0.0.7 lib/tailwind_dsl/etl/raw_components/schema/target_file.rb