Sha256: eccc876c03e728ace200fb3ce1b0cfc7aa94e7951aaaba7b40f34bc86611bc5e

Contents?: true

Size: 467 Bytes

Versions: 11

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module Documentation
      # Builds project skeleton citation documentation.
      class Citation < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_citation

          builder.call(settings.merge(template_path: "%project_name%/CITATION.cff.erb")).render
          true
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubysmith-8.0.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.9.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.8.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.7.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.6.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.5.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.4.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.3.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.2.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.1.0 lib/rubysmith/builders/documentation/citation.rb
rubysmith-7.0.0 lib/rubysmith/builders/documentation/citation.rb