Sha256: 9297fd18192eb1fe668aba33d9c59abf887c6d6cbaa154fd077d0e638d906e3f
Contents?: true
Size: 876 Bytes
Versions: 30
Compression:
Stored size: 876 Bytes
Contents
# frozen_string_literal: true module Bridgetown module Converters # Identity converter. Returns same content as given. # For more info on converters see https://bridgetownrb.com/docs/plugins/converters/ class Identity < Converter priority :lowest # Public: Does the given extension match this converter's list of acceptable extensions? # Takes one argument: the file's extension (including the dot). # # _ext - The String extension to check (not relevant here) # # Returns true since it always matches. def matches(_ext) true end # Public: The extension to be given to the output file (including the dot). # # ext - The String extension or original file. # # Returns The String output file extension. def output_ext(ext) ext end end end end
Version data entries
30 entries across 30 versions & 1 rubygems