Class: SecureHeaders::NoOpHeaderConfig

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

Instance Method Summary collapse

Instance Method Details

#boom(arg = nil) ⇒ Object Also known as: [], []=, keys



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

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

#dupObject



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

def dup
  self.class.instance
end

#opt_out?Boolean

Returns:

  • (Boolean)


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

def opt_out?
  true
end

#to_hObject



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

def to_h
  {}
end