Sha256: c01733d5e19a8df2af24bc20ac82a242634cbdffa684758912ebca443c6a8007
Contents?: true
Size: 729 Bytes
Versions: 8
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders # Builds project skeleton console for object inspection and exploration. class Console using Refinements::Struct def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return configuration unless configuration.build_console builder.call(configuration.merge(template_path: "%project_name%/bin/console.erb")) .render .permit 0o755 configuration end private attr_reader :configuration, :builder end end end
Version data entries
8 entries across 8 versions & 1 rubygems