Class: XanMarkup::ContentTag
Constant Summary
Constants inherited from Tag
Tag::CleanArgValue, Tag::QuotedFragment, Tag::QuotedString, Tag::TagArgs
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #args ⇒ Object
-
#initialize(tag, content) ⇒ ContentTag
constructor
A new instance of ContentTag.
Methods inherited from Tag
Constructor Details
#initialize(tag, content) ⇒ ContentTag
Returns a new instance of ContentTag.
4 5 6 7 |
# File 'lib/xan_markup/content_tag.rb', line 4 def initialize(tag, content) @tag = tag @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/xan_markup/content_tag.rb', line 3 def content @content end |
Instance Method Details
#args ⇒ Object
9 10 11 |
# File 'lib/xan_markup/content_tag.rb', line 9 def args super.merge(content: content) end |