Class: SecureHeaders::NoOpHeaderConfig
- Inherits:
-
Object
- Object
- SecureHeaders::NoOpHeaderConfig
- Includes:
- Singleton
- Defined in:
- lib/secure_headers.rb
Instance Method Summary collapse
- #boom(*args) ⇒ Object (also: #[], #[]=, #keys)
- #dup ⇒ Object
- #opt_out? ⇒ Boolean
- #to_h ⇒ Object
Instance Method Details
#boom(*args) ⇒ Object Also known as: [], []=, keys
28 29 30 |
# File 'lib/secure_headers.rb', line 28 def boom(*args) raise "Illegal State: attempted to modify NoOpHeaderConfig. Create a new config instead." end |
#dup ⇒ Object
36 37 38 |
# File 'lib/secure_headers.rb', line 36 def dup self.class.instance end |
#opt_out? ⇒ Boolean
40 41 42 |
# File 'lib/secure_headers.rb', line 40 def opt_out? true end |
#to_h ⇒ Object
32 33 34 |
# File 'lib/secure_headers.rb', line 32 def to_h {} end |