Class: SecureHeaders::NoOpHeaderConfig

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/secure_headers.rb

Instance Method Summary collapse

Instance Method Details

#boom(*args) ⇒ Object Also known as: [], []=, keys



28
29
30
# File 'lib/secure_headers.rb', line 28

def boom(*args)
  raise "Illegal State: attempted to modify NoOpHeaderConfig. Create a new config instead."
end

#dupObject



36
37
38
# File 'lib/secure_headers.rb', line 36

def dup
  self.class.instance
end

#opt_out?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/secure_headers.rb', line 40

def opt_out?
  true
end

#to_hObject



32
33
34
# File 'lib/secure_headers.rb', line 32

def to_h
  {}
end