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
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 |
#dup ⇒ Object
35 36 37 |
# File 'lib/secure_headers.rb', line 35 def dup self.class.instance end |
#opt_out? ⇒ Boolean
39 40 41 |
# File 'lib/secure_headers.rb', line 39 def opt_out? true end |
#to_h ⇒ Object
31 32 33 |
# File 'lib/secure_headers.rb', line 31 def to_h {} end |