Class: SecureHeaders::NoOpHeaderConfig
- Inherits:
-
Object
- Object
- SecureHeaders::NoOpHeaderConfig
- Includes:
- Singleton
- Defined in:
- lib/secure_headers.rb
Instance Method Summary collapse
- #boom(arg = nil) ⇒ Object (also: #[], #[]=, #keys)
- #dup ⇒ Object
- #opt_out? ⇒ Boolean
- #to_h ⇒ Object
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 |
#dup ⇒ Object
34 35 36 |
# File 'lib/secure_headers.rb', line 34 def dup self.class.instance end |
#opt_out? ⇒ Boolean
38 39 40 |
# File 'lib/secure_headers.rb', line 38 def opt_out? true end |
#to_h ⇒ Object
30 31 32 |
# File 'lib/secure_headers.rb', line 30 def to_h {} end |