Class: MarkdownUI::Button::Group::Buttons::Icon
- Inherits:
-
Object
- Object
- MarkdownUI::Button::Group::Buttons::Icon
- Defined in:
- lib/markdown-ui/button/group/buttons/icon.rb
Instance Method Summary collapse
-
#initialize(element, content) ⇒ Icon
constructor
A new instance of Icon.
- #render ⇒ Object
Constructor Details
#initialize(element, content) ⇒ Icon
Returns a new instance of Icon.
5 6 7 8 |
# File 'lib/markdown-ui/button/group/buttons/icon.rb', line 5 def initialize(element, content) @element = element @content = content end |
Instance Method Details
#render ⇒ Object
10 11 12 13 14 15 |
# File 'lib/markdown-ui/button/group/buttons/icon.rb', line 10 def render klass = "ui #{@element} icon buttons" content = @content.strip MarkdownUI::StandardTag.new(content, klass).render end |