Class: CookiesComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- CookiesComponent
- Defined in:
- app/components/cookies_component.rb
Instance Method Summary collapse
-
#initialize(text: nil, text2: [], url: nil) ⇒ CookiesComponent
constructor
A new instance of CookiesComponent.
Constructor Details
#initialize(text: nil, text2: [], url: nil) ⇒ CookiesComponent
Returns a new instance of CookiesComponent.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/components/cookies_component.rb', line 6 def initialize(text: nil, text2: [], url: nil) unless text text = [] text << <<~EOS You may delete and block all cookies from this site, but parts of the site will not work. EOS text << <<~EOS Click "Accept" if you consent usage of cookies, otherwise click "Reject". EOS end @text = text @text2 = text2 @url = url end |