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



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

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

#dupObject



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

def dup
  self.class.instance
end

#opt_out?Boolean

Returns:

  • (Boolean)


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

def opt_out?
  true
end

#to_hObject



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

def to_h
  {}
end