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



25
26
27
# File 'lib/secure_headers.rb', line 25

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

#dupObject



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

def dup
  self.class.instance
end

#opt_out?Boolean

Returns:

  • (Boolean)


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

def opt_out?
  true
end

#to_hObject



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

def to_h
  {}
end