Sha256: b862170128df55a8ff6f6f1cb482cb897c7b7a16c483d04e2687185f7e65c744

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

module Staticpress
  class Settings < JSObject
    def self.default
      new 'verbose' => false
    end

    def self.instance
      new(default.to_hash.merge(@runtime_settings || {}))
    end

    def self.set!(settings)
      (@runtime_settings ||= {}).merge!(settings)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
staticpress-0.7.1 lib/staticpress/settings.rb
staticpress-0.7.0 lib/staticpress/settings.rb
staticpress-0.6.2 lib/staticpress/settings.rb
staticpress-0.6.1 lib/staticpress/settings.rb
staticpress-0.6.0 lib/staticpress/settings.rb