Class: MarkdownUI::ButtonTag
- Inherits:
-
Shared::TagKlass
- Object
- Shared::TagKlass
- MarkdownUI::ButtonTag
- Defined in:
- lib/markdown-ui/tag/button_tag.rb
Instance Method Summary collapse
-
#initialize(_content, _klass = nil, __id = nil, _data = nil) ⇒ ButtonTag
constructor
A new instance of ButtonTag.
- #render ⇒ Object
Constructor Details
#initialize(_content, _klass = nil, __id = nil, _data = nil) ⇒ ButtonTag
Returns a new instance of ButtonTag.
3 4 5 6 7 8 |
# File 'lib/markdown-ui/tag/button_tag.rb', line 3 def initialize(_content, _klass = nil, __id = nil, _data = nil) @klass = _klass @content = _content @data = _data @id = __id end |
Instance Method Details
#render ⇒ Object
10 11 12 |
# File 'lib/markdown-ui/tag/button_tag.rb', line 10 def render "<button#{_id}#{klass}#{data}>#{content}</button>" end |