Sha256: 93a28b330f84a55adf01ef38171479cc3be34fd678d046322077c9dcd828497f

Contents?: true

Size: 699 Bytes

Versions: 50

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

# We keep options in its own self-contained file
# so that we can load it independently in Rails 3,
# where the full template stuff is lazy-loaded.

module Haml
  module Template
    extend self

    class Options < Hash
      def []=(key, value)
        super
        if Haml::Options.buffer_defaults.key?(key)
          Haml::Options.buffer_defaults[key] = value
        end
      end
    end

    @options = ::Haml::Template::Options.new
    # The options hash for Haml when used within Rails.
    # See {file:REFERENCE.md#options the Haml options documentation}.
    #
    # @return [Haml::Template::Options<Symbol => Object>]
    attr_accessor :options
  end
end

Version data entries

50 entries across 46 versions & 4 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/haml-5.2.2/lib/haml/template/options.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-7.0.0 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.2.2 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.2.1 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.2.0 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.1.2 bundle/ruby/3.3.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.1.1 bundle/ruby/3.0.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.1.0 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.0.1 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-6.0.0 bundle/ruby/3.0.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.4.1 bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.4.0 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.3.1 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.3.0 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.2.3 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.2.2 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.2.1 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb
brakeman-5.2.0 bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb