Sha256: 0b45e2f0c980c7994f3668744b04e88d6e1cb736b6f218c5d88a411e2685b1d2
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders # Builds project skeleton RubyCritic code quality support. class RubyCritic def self.call realm, builder: Builder new(realm, builder: builder).call end def initialize realm, builder: Builder @realm = realm @builder = builder end def call return unless realm.build_ruby_critic builder.call(realm.with(template_path: "%project_name%/.rubycritic.yml.erb")).render end private attr_reader :realm, :builder end end end
Version data entries
4 entries across 4 versions & 1 rubygems