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
25 26 27 |
# File 'lib/secure_headers.rb', line 25 def boom(*args) raise "Illegal State: attempted to modify NoOpHeaderConfig. Create a new config instead." end |
#dup ⇒ Object
33 34 35 |
# File 'lib/secure_headers.rb', line 33 def dup self.class.instance end |
#opt_out? ⇒ Boolean
37 38 39 |
# File 'lib/secure_headers.rb', line 37 def opt_out? true end |
#to_h ⇒ Object
29 30 31 |
# File 'lib/secure_headers.rb', line 29 def to_h {} end |