Sha256: e0241b12f99c6835718de3bb2014f9af8058c80a48c9f7a506798045a241c85a

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Hanamismith
  module Builders
    # Builds project skeleton SVG icon.
    class Icon < Rubysmith::Builders::Abstract
      using Refinements::Struct

      def call
        path = "%project_name%/app/assets/images/icon.svg.erb"
        builder.call(configuration.merge(template_path: path)).render
        configuration
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanamismith-0.38.0 lib/hanamismith/builders/icon.rb
hanamismith-0.37.0 lib/hanamismith/builders/icon.rb