Module: JekyllFilterTemplate

Defined in:
jekyll_filter_template.rb

Overview

Template for Jekyll filters.

Author:

License:

  • SPDX-License-Identifier: Apache-2.0

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.logObject

Accessor allows classes in this module to use the logger



12
13
14
# File 'jekyll_filter_template.rb', line 12

def self.log
  @log
end

Instance Method Details

#my_filter_template(input_strings) ⇒ String

Describe the filter here.

Examples:

Describe an example of how to use it.

{{ 1234 | my_filter_template }}

Parameters:

  • input_strings (Array<String>)

    State what this parameter is for.

Returns:

  • (String)


21
22
23
24
# File 'jekyll_filter_template.rb', line 21

def my_filter_template(input_strings)
  JekyllFilterTemplate.log.info "input_strings = #{input_strings}, upcased = #{input_strings.upcase}".cyan
  input_strings.upcase
end