class Liquid::Autoescape::Configuration
A configuration file for setting auto-escape options
Attributes
exemptions[R]
@return [Liquid::Autoescape::ExemptionList] The list of custom exemptions
global[W]
@return [Boolean] Whether global mode is enabled
trusted_filters[RW]
@return [Array<Symbol>] The list of trusted filter names
Public Class Methods
new()
click to toggle source
Create a new configuration object with default values
# File lib/liquid/autoescape/configuration.rb, line 20 def initialize reset end
Public Instance Methods
global?()
click to toggle source
Whether global mode is enabled
@return [Boolean]
# File lib/liquid/autoescape/configuration.rb, line 34 def global? @global end
reset()
click to toggle source
Reset the configuration's values to their defaults
# File lib/liquid/autoescape/configuration.rb, line 25 def reset @exemptions = ExemptionList.from_module(CoreExemptions) @global = false @trusted_filters = [] end