Class: MetaTag
- Inherits:
-
REXML::Element
- Object
- REXML::Element
- MetaTag
- Defined in:
- lib/ribit/xhtmltag.rb
Overview
Helper class for creating ‘meta’ elements
Direct Known Subclasses
Constant Summary collapse
- NAME =
'meta'- HTTP_EQUIV =
'http-equiv'- CONTENT =
'content'
Instance Method Summary collapse
-
#initialize(http_equiv = nil, content = nil) ⇒ MetaTag
constructor
A new instance of MetaTag.
Constructor Details
#initialize(http_equiv = nil, content = nil) ⇒ MetaTag
Returns a new instance of MetaTag.
29 30 31 32 33 |
# File 'lib/ribit/xhtmltag.rb', line 29 def initialize( http_equiv=nil, content=nil ) super( NAME ) attributes[HTTP_EQUIV] = http_equiv attributes[CONTENT] = content end |