Sha256: dfe88be93d8148fa3371f9865920bec8cf8853310c5d559fa12262cefcea8096
Contents?: true
Size: 637 Bytes
Versions: 8
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Hanamismith module Builders # Builds project skeleton stylesheet. class Stylesheet using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call path = "%project_name%/public/stylesheets/home.css.erb" builder.call(configuration.merge(template_path: path)).render configuration end private attr_reader :configuration, :builder end end end
Version data entries
8 entries across 8 versions & 1 rubygems