Class: Para::SeoTools::MetaTags::Tags::Base
- Inherits:
-
Object
- Object
- Para::SeoTools::MetaTags::Tags::Base
- Defined in:
- lib/para/seo_tools/meta_tags/tags/base.rb
Direct Known Subclasses
Description, Image, Keywords, Title, Url
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
Class Method Summary collapse
-
.process(value) ⇒ Object
Overriding this method in subclasses allow to process the meta tag value before it is rendered, e.g.
Instance Method Summary collapse
-
#initialize(controller) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(controller) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/para/seo_tools/meta_tags/tags/base.rb', line 8 def initialize(controller) @controller = controller end |
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller.
6 7 8 |
# File 'lib/para/seo_tools/meta_tags/tags/base.rb', line 6 def controller @controller end |
Class Method Details
.process(value) ⇒ Object
Overriding this method in subclasses allow to process the meta tag value before it is rendered, e.g. stripping HTML tags
15 16 17 |
# File 'lib/para/seo_tools/meta_tags/tags/base.rb', line 15 def self.process(value) value end |